1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
10 #include <osdep_service.h>
12 #include <wlan_bssdef.h>
13 #include <linux/mutex.h>
14 #include <linux/sem.h>
17 * Used to report a bss has been scanned
20 struct wlan_bssid_ex bss;
24 * Used to report that the requested site survey has been done.
26 * bss_cnt indicates the number of bss that has been reported.
30 struct surveydone_event {
36 * Used to report the link result of joinning the given bss
40 * -1: authentication fail
41 * -2: association fail
45 struct joinbss_event {
46 struct wlan_network network;
50 * Used to report a given STA has joinned the created BSS.
51 * It is used in AP/Ad-HoC(M) mode.
54 struct stassoc_event {
55 unsigned char macaddr[6];
56 unsigned char rsvd[2];
61 unsigned char macaddr[6];
62 unsigned char rsvd[2]; /* for reason */
68 void (*event_callback)(struct adapter *dev, u8 *pbuf);
71 #define C2HEVENT_SZ 32
73 #define NETWORK_QUEUE_SZ 4
75 struct network_queue {
78 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
81 #endif /* _WLANEVENT_H_ */