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