1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
14 ******************************************************************************/
18 #include <osdep_service.h>
20 #include <wlan_bssdef.h>
21 #include <linux/mutex.h>
22 #include <linux/sem.h>
25 Used to report a bss has been scanned
28 struct wlan_bssid_ex bss;
32 Used to report that the requested site survey has been done.
34 bss_cnt indicates the number of bss that has been reported.
38 struct surveydone_event {
44 Used to report the link result of joinning the given bss
48 -1: authentication fail
53 struct joinbss_event {
54 struct wlan_network network;
58 Used to report a given STA has joinned the created BSS.
59 It is used in AP/Ad-HoC(M) mode.
62 struct stassoc_event {
63 unsigned char macaddr[6];
64 unsigned char rsvd[2];
69 unsigned char macaddr[6];
70 unsigned char rsvd[2]; /* for reason */
76 void (*event_callback)(struct adapter *dev, u8 *pbuf);
79 #define C2HEVENT_SZ 32
81 #define NETWORK_QUEUE_SZ 4
83 struct network_queue {
86 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
89 #endif /* _WLANEVENT_H_ */