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>
23 Used to report a bss has been scanned
27 struct wlan_bssid_ex bss;
31 Used to report that the requested site survey has been done.
33 bss_cnt indicates the number of bss that has been reported.
37 struct surveydone_event {
43 Used to report the link result of joinning the given bss
47 -1: authentication fail
52 struct joinbss_event {
53 struct wlan_network network;
57 Used to report a given STA has joinned the created BSS.
58 It is used in AP/Ad-HoC(M) mode.
62 struct stassoc_event {
63 unsigned char macaddr[6];
64 unsigned char rsvd[2];
70 unsigned char macaddr[6];
71 unsigned char rsvd[2]; /* for reason */
80 #define GEN_EVT_CODE(event) event ## _EVT_
84 void (*event_callback)(struct rtw_adapter *dev, u8 *pbuf);
88 #define C2HEVENT_SZ 32
92 unsigned char evt_code;
93 unsigned short evt_sz;
94 volatile int *caller_ff_tail;
98 struct c2hevent_queue {
101 struct event_node nodes[C2HEVENT_SZ];
105 #define NETWORK_QUEUE_SZ 4
107 struct network_queue {
110 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
114 #endif /* _WLANEVENT_H_ */