123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- #ifndef _RTW_EVENT_H_
- #define _RTW_EVENT_H_
- #ifdef CONFIG_H2CLBK
- #include <h2clbk.h>
- #endif
- struct survey_event {
- WLAN_BSSID_EX bss;
- };
- struct surveydone_event {
- unsigned int bss_cnt;
-
- };
- struct joinbss_event {
- struct wlan_network network;
- };
- struct stassoc_event {
- unsigned char macaddr[6];
- unsigned char rsvd[2];
- int cam_id;
-
- };
- struct stadel_event {
- unsigned char macaddr[6];
- unsigned char rsvd[2];
- int mac_id;
- };
- struct addba_event
- {
- unsigned int tid;
- };
- #ifdef CONFIG_H2CLBK
- struct c2hlbk_event{
- unsigned char mac[6];
- unsigned short s0;
- unsigned short s1;
- unsigned int w0;
- unsigned char b0;
- unsigned short s2;
- unsigned char b1;
- unsigned int w1;
- };
- #endif
- #define GEN_EVT_CODE(event) event ## _EVT_
- struct fwevent {
- u32 parmsize;
- void (*event_callback)(_adapter *dev, u8 *pbuf);
- };
- #define C2HEVENT_SZ 32
- struct event_node{
- unsigned char *node;
- unsigned char evt_code;
- unsigned short evt_sz;
- volatile int *caller_ff_tail;
- int caller_ff_sz;
- };
- struct c2hevent_queue {
- volatile int head;
- volatile int tail;
- struct event_node nodes[C2HEVENT_SZ];
- unsigned char seq;
- };
- #define NETWORK_QUEUE_SZ 4
- struct network_queue {
- volatile int head;
- volatile int tail;
- WLAN_BSSID_EX networks[NETWORK_QUEUE_SZ];
- };
- #endif
|