1 #ifndef _RTL871x_EVENT_H_
2 #define _RTL871x_EVENT_H_
4 #include "osdep_service.h"
6 #include "wlan_bssdef.h"
7 #include <linux/semaphore.h>
11 * Used to report a bss has been scanned
14 struct ndis_wlan_bssid_ex bss
;
18 * Used to report that the requested site survey has been done.
19 * bss_cnt indicates the number of bss that has been reported.
21 struct surveydone_event
{
27 * Used to report the link result of joinning the given bss
29 * -1: authentication fail
30 * -2: association fail
33 struct joinbss_event
{
34 struct wlan_network network
;
38 * Used to report a given STA has joinned the created BSS.
39 * It is used in AP/Ad-HoC(M) mode.
41 struct stassoc_event
{
42 unsigned char macaddr
[6];
43 unsigned char rsvd
[2];
48 unsigned char macaddr
[6];
49 unsigned char rsvd
[2];
56 #define GEN_EVT_CODE(event) event ## _EVT_
60 void (*event_callback
)(struct _adapter
*dev
, u8
*pbuf
);
63 #define C2HEVENT_SZ 32
66 unsigned char evt_code
;
67 unsigned short evt_sz
;
68 /*volatile*/ int *caller_ff_tail
;
72 struct c2hevent_queue
{
73 /*volatile*/ int head
;
74 /*volatile*/ int tail
;
75 struct event_node nodes
[C2HEVENT_SZ
];
79 #define NETWORK_QUEUE_SZ 4
81 struct network_queue
{
82 /*volatile*/ int head
;
83 /*volatile*/ int tail
;
84 struct wlan_bssid_ex networks
[NETWORK_QUEUE_SZ
];
87 struct ADDBA_Req_Report_parm
{
88 unsigned char MacAddress
[ETH_ALEN
];
89 unsigned short StartSeqNum
;
92 #include "rtl8712_event.h"
94 #endif /* _WLANEVENT_H_ */