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