1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
11 Used to report a bss has been scanned
15 struct wlan_bssid_ex bss;
19 Used to report that the requested site survey has been done.
21 bss_cnt indicates the number of bss that has been reported.
25 struct surveydone_event {
31 Used to report the link result of joinning the given bss
35 -1: authentication fail
40 struct joinbss_event {
41 struct wlan_network network;
45 Used to report a given STA has joinned the created BSS.
46 It is used in AP/Ad-HoC(M) mode.
50 struct stassoc_event {
51 unsigned char macaddr[6];
52 unsigned char rsvd[2];
58 unsigned char macaddr[6];
59 unsigned char rsvd[2]; /* for reason */
73 #define GEN_EVT_CODE(event) event ## _EVT_
79 void (*event_callback)(struct adapter *dev, u8 *pbuf);
83 #define C2HEVENT_SZ 32
87 unsigned char evt_code;
88 unsigned short evt_sz;
89 volatile int *caller_ff_tail;
93 struct c2hevent_queue {
96 struct event_node nodes[C2HEVENT_SZ];
100 #define NETWORK_QUEUE_SZ 4
102 struct network_queue {
105 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
109 #endif /* _WLANEVENT_H_ */