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 #ifndef CONFIG_RTL8711FW
27 #include <wlan_bssdef.h>
28 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
29 #include <asm/semaphore.h>
31 #include <linux/semaphore.h>
33 #include <linux/sem.h>
36 #include <wlan_bssdef.h>
37 #endif//CONFIG_RTL8711FW
46 Used to report a bss has been scanned
54 Used to report that the requested site survey has been done.
56 bss_cnt indicates the number of bss that has been reported.
60 struct surveydone_event {
66 Used to report the link result of joinning the given bss
70 -1: authentication fail
75 struct joinbss_event {
76 struct wlan_network network;
80 Used to report a given STA has joinned the created BSS.
81 It is used in AP/Ad-HoC(M) mode.
85 struct stassoc_event {
86 unsigned char macaddr[6];
87 unsigned char rsvd[2];
93 unsigned char macaddr[6];
94 unsigned char rsvd[2]; //for reason
106 unsigned char mac[6];
115 #endif//CONFIG_H2CLBK
117 #define GEN_EVT_CODE(event) event ## _EVT_
123 void (*event_callback)(_adapter *dev, u8 *pbuf);
127 #define C2HEVENT_SZ 32
131 unsigned char evt_code;
132 unsigned short evt_sz;
133 volatile int *caller_ff_tail;
137 struct c2hevent_queue {
140 struct event_node nodes[C2HEVENT_SZ];
144 #define NETWORK_QUEUE_SZ 4
146 struct network_queue {
149 WLAN_BSSID_EX networks[NETWORK_QUEUE_SZ];
153 #endif // _WLANEVENT_H_