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 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
23 #include <osdep_service.h>
25 #include <wlan_bssdef.h>
26 #include <linux/semaphore.h>
27 #include <linux/sem.h>
30 Used to report a bss has been scanned
33 struct wlan_bssid_ex bss;
37 Used to report that the requested site survey has been done.
39 bss_cnt indicates the number of bss that has been reported.
43 struct surveydone_event {
49 Used to report the link result of joinning the given bss
53 -1: authentication fail
58 struct joinbss_event {
59 struct wlan_network network;
63 Used to report a given STA has joinned the created BSS.
64 It is used in AP/Ad-HoC(M) mode.
67 struct stassoc_event {
68 unsigned char macaddr[6];
69 unsigned char rsvd[2];
74 unsigned char macaddr[6];
75 unsigned char rsvd[2]; /* for reason */
83 #define GEN_EVT_CODE(event) event ## _EVT_
87 void (*event_callback)(struct adapter *dev, u8 *pbuf);
90 #define C2HEVENT_SZ 32
94 unsigned char evt_code;
95 unsigned short evt_sz;
100 struct c2hevent_queue {
103 struct event_node nodes[C2HEVENT_SZ];
107 #define NETWORK_QUEUE_SZ 4
109 struct network_queue {
112 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
115 #endif /* _WLANEVENT_H_ */