4 #include "zdtkipseed.h"
7 #define MAX_MSDU_LNG 1600// only payload
8 #define MAC_HDR_LNG 24 // 802.11, not include A4
9 #define WEP_ADD_LNG 8 // 4 for IV, 4 for ICV
10 #define WDS_ADD_LNG 6 // for Address 4
17 #define MIN_FRAG_LNG 256
18 #define MAX_FRAG_NUM (MAX_MSDU_LNG / (MIN_FRAG_LNG - MAC_HDR_LNG - CRC_LNG))
22 #define MAX_RECORD (MAX_AID + 1)
23 #define BURST_NUM 64//32
24 #define TXQ_THRESHOLD 48
25 #define MCQ_THRESHOLD 15
26 #define CHAL_TEXT_LEN 128
28 #define IDLE_TIMEOUT (10*60*1000*1000) //10 min
30 #define IDLE_TIMEOUT (/*10*/HZ*60*100) //10 min //johnson
33 #define RISE_RATE_THRESHOLD 4
34 #define HIGH_RISE_RATE_THRESHOLD 0xff
35 #define AGE_HASH_PERIOD (/*10*/1*60) //10 min //johnson
37 #define LONG_PREAMBLE 0
38 #define SHORT_PREAMBLE 1
45 #define WEP_NOT_USED 0
53 #define TO_DS_BIT 0x01
54 #define FROM_DS_BIT 0x02
55 #define MORE_FRAG_BIT 0x04
57 #define PW_SAVE_BIT 0x10
58 #define MORE_DATA_BIT 0x20
60 #define ORDER_BIT 0x80
63 #define KEYID_MASK 0xC0
64 #define NON_ERP_PRESENT 0x01
65 #define USE_PROTECTION 0x02
66 #define BARKER_PREAMBLE 0x04
80 STATION_STATE_NOT_AUTH
,
81 STATION_STATE_AUTH_OPEN
,
82 STATION_STATE_AUTH_KEY
,
84 STATION_STATE_DIS_ASOC
107 EID_EXT_RATES
= 0x32,
113 ZDOUI_TURBO
= 0x00CC01,
114 ZDOUI_BURST
= 0x00CC02,
115 ZDOUI_AMSDU
= 0x00CC03
120 U8 buf
[34]; //Max SSID Length = 32
131 CAP_SHORT_PREAMBLE
= 0x20,
132 CAP_PBCC_ENABLE
= 0x40,
133 CAP_SHORT_SLOT_TIME
= 0x0400,
134 CAP_DSSS_OFDM_BIT
= 0x2000
140 RC_UNSPEC_REASON
= 1,
151 RC_4WAY_SHAKE_TIMEOUT
,
152 RC_GKEY_UPDATE_TIMEOUT
,
154 RC_MC_CIPHER_INVALID
,
155 RC_UNI_CIPHER_INVALID
,
157 RC_UNSUP_RSNE_VERSION
,
176 SC_UNSUP_SHORT_SLOT_TIME
= 25,
177 SC_UNSUP_ER_PBCC
= 26,
178 SC_UNSUP_DSSS_OFDM
= 27
186 ST_REASOC_REQ
= 0x20,
187 ST_REASOC_RSP
= 0x30,
204 ST_DATA_POLL_ACK
= 0x38,
209 typedef struct TrafficMap_s
215 #define RATEARRAY_NUM 16
216 typedef struct Hash_s
218 struct Hash_s
*pNext
;
226 BOOLEAN bJustRiseRate
;
244 U8 RateArray
[RATEARRAY_NUM
];// this array is the rate adaption table
246 U8 SupportRateArray
[RATEARRAY_NUM
];
247 U8 SupportRateArrayCount
;
248 U8 RiseConditionCount
;
249 U8 DownConditionCount
;
257 #if ZDCONF_LP_SUPPORT == 1
264 #ifdef HOSTAPD_SUPPORT
270 typedef struct Frame_s
274 U8 header
[32]; //include IV, eIV
279 typedef struct FrmDesc_s
281 struct FrmDesc_s
*pNext
;
282 U8 buffer
[160]; //use mbuf to send boradcast
283 Frame_t mpdu
[MAX_FRAG_NUM
]; //for fragment
288 U8 CalMIC
[MIC_LNG
+1]; //1~8 for MIC, 9==TRUE ,if used.
290 //U8 HwMicPhys[12]; // MIC valuse(8). MIC status(4)
293 #define MAX_COUNTRY_INFO_SIZE 50
294 typedef struct BssInfo_s
{
305 #if ZDCONF_LP_SUPPORT == 1
309 #if ZDCONF_SES_SUPPORT == 1
310 BOOLEAN SES_Element_Valid
;