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 ******************************************************************************/
28 Used to report a bss has been scanned
36 Used to report that the requested site survey has been done.
38 bss_cnt indicates the number of bss that has been reported.
42 struct surveydone_event {
48 Used to report the link result of joinning the given bss
52 -1: authentication fail
57 struct joinbss_event {
58 struct wlan_network network;
62 Used to report a given STA has joinned the created BSS.
63 It is used in AP/Ad-HoC(M) mode.
67 struct stassoc_event {
68 unsigned char macaddr[6];
72 unsigned char macaddr[6];
73 unsigned char rsvd[2]; /* for reason */
74 unsigned char locally_generated;
97 #endif/* CONFIG_H2CLBK */
99 #define GEN_EVT_CODE(event) event ## _EVT_
105 void (*event_callback)(_adapter *dev, u8 *pbuf);
109 #define C2HEVENT_SZ 32
113 unsigned char evt_code;
114 unsigned short evt_sz;
115 volatile int *caller_ff_tail;
119 struct c2hevent_queue {
122 struct event_node nodes[C2HEVENT_SZ];
126 #define NETWORK_QUEUE_SZ 4
128 struct network_queue {
131 WLAN_BSSID_EX networks[NETWORK_QUEUE_SZ];
135 #endif /* _WLANEVENT_H_ */