xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/include/rtw_event.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2019 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 /*
19 Used to report a bss has been scanned
20 
21 */
22 struct survey_event	{
23 	WLAN_BSSID_EX bss;
24 };
25 
26 /*
27 Used to report that the requested site survey has been done.
28 
29 bss_cnt indicates the number of bss that has been reported.
30 
31 
32 */
33 struct surveydone_event {
34 	unsigned int	bss_cnt;
35 	u8 activate_ch_cnt;
36 	bool acs; /* aim to trigger channel selection */
37 };
38 
39 /*
40 Used to report the link result of joinning the given bss
41 
42 
43 join_res:
44 -1: authentication fail
45 -2: association fail
46 > 0: TID
47 
48 */
49 struct joinbss_event {
50 	struct	wlan_network	network;
51 };
52 
53 /*
54 Used to report a given STA has joinned the created BSS.
55 It is used in AP/Ad-HoC(M) mode.
56 
57 
58 */
59 struct stassoc_event {
60 	unsigned char macaddr[6];
61 };
62 
63 struct stadel_event {
64 	unsigned char macaddr[6];
65 	unsigned char rsvd[2]; /* for reason */
66 	unsigned char locally_generated;
67 	int mac_id;
68 };
69 
70 struct wmm_event {
71 	unsigned char wmm;
72 };
73 
74 
75 #endif /* _WLANEVENT_H_ */
76