1 /******************************************************************************
3 * Copyright(c) 2007 - 2010 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
18 * Modifications for inclusion into the Linux staging tree are
19 * Copyright(c) 2010 Larry Finger. All rights reserved.
21 * Contact information:
22 * WLAN FAE <wlanfae@realtek.com>
23 * Larry Finger <Larry.Finger@lwfinger.net>
25 ******************************************************************************/
26 #ifndef _RTL871x_EVENT_H_
27 #define _RTL871x_EVENT_H_
29 #include "osdep_service.h"
31 #include "wlan_bssdef.h"
32 #include <linux/semaphore.h>
33 #include <linux/sem.h>
36 * Used to report a bss has been scanned
39 struct ndis_wlan_bssid_ex bss
;
43 * Used to report that the requested site survey has been done.
44 * bss_cnt indicates the number of bss that has been reported.
46 struct surveydone_event
{
52 * Used to report the link result of joinning the given bss
54 * -1: authentication fail
55 * -2: association 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.
66 struct stassoc_event
{
67 unsigned char macaddr
[6];
68 unsigned char rsvd
[2];
73 unsigned char macaddr
[6];
74 unsigned char rsvd
[2];
81 #define GEN_EVT_CODE(event) event ## _EVT_
85 void (*event_callback
)(struct _adapter
*dev
, u8
*pbuf
);
88 #define C2HEVENT_SZ 32
91 unsigned char evt_code
;
92 unsigned short evt_sz
;
93 /*volatile*/ int *caller_ff_tail
;
97 struct c2hevent_queue
{
98 /*volatile*/ int head
;
99 /*volatile*/ int tail
;
100 struct event_node nodes
[C2HEVENT_SZ
];
104 #define NETWORK_QUEUE_SZ 4
106 struct network_queue
{
107 /*volatile*/ int head
;
108 /*volatile*/ int tail
;
109 struct wlan_bssid_ex networks
[NETWORK_QUEUE_SZ
];
112 struct ADDBA_Req_Report_parm
{
113 unsigned char MacAddress
[ETH_ALEN
];
114 unsigned short StartSeqNum
;
117 #include "rtl8712_event.h"
119 #endif /* _WLANEVENT_H_ */