1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2017 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef _RTW_EVENT_H_ 16 #define _RTW_EVENT_H_ 17 18 #ifdef CONFIG_H2CLBK 19 #include <h2clbk.h> 20 #endif 21 22 /* 23 Used to report a bss has been scanned 24 25 */ 26 struct survey_event { 27 WLAN_BSSID_EX bss; 28 }; 29 30 /* 31 Used to report that the requested site survey has been done. 32 33 bss_cnt indicates the number of bss that has been reported. 34 35 36 */ 37 struct surveydone_event { 38 unsigned int bss_cnt; 39 u8 activate_ch_cnt; 40 bool acs; /* aim to trigger channel selection */ 41 }; 42 43 /* 44 Used to report the link result of joinning the given bss 45 46 47 join_res: 48 -1: authentication fail 49 -2: association fail 50 > 0: TID 51 52 */ 53 struct joinbss_event { 54 struct wlan_network network; 55 }; 56 57 /* 58 Used to report a given STA has joinned the created BSS. 59 It is used in AP/Ad-HoC(M) mode. 60 61 62 */ 63 struct stassoc_event { 64 unsigned char macaddr[6]; 65 }; 66 67 struct stadel_event { 68 unsigned char macaddr[6]; 69 unsigned char rsvd[2]; /* for reason */ 70 unsigned char locally_generated; 71 int mac_id; 72 }; 73 74 struct wmm_event { 75 unsigned char wmm; 76 }; 77 78 #ifdef CONFIG_H2CLBK 79 struct c2hlbk_event { 80 unsigned char mac[6]; 81 unsigned short s0; 82 unsigned short s1; 83 unsigned int w0; 84 unsigned char b0; 85 unsigned short s2; 86 unsigned char b1; 87 unsigned int w1; 88 }; 89 #endif/* CONFIG_H2CLBK */ 90 91 struct rtw_event { 92 u32 parmsize; 93 void (*event_callback)(_adapter *dev, u8 *pbuf); 94 }; 95 #endif /* _WLANEVENT_H_ */ 96