GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / rtl8192e / ieee80211 / rtl819x_BA.h
blob9658cb022af8585214ffc6c619ee2756734f199c
1 #ifndef _BATYPE_H_
2 #define _BATYPE_H_
4 #define TOTAL_TXBA_NUM 16
5 #define TOTAL_RXBA_NUM 16
7 #define BA_SETUP_TIMEOUT 200
8 #define BA_INACT_TIMEOUT 60000
10 #define BA_POLICY_DELAYED 0
11 #define BA_POLICY_IMMEDIATE 1
13 #define ADDBA_STATUS_SUCCESS 0
14 #define ADDBA_STATUS_REFUSED 37
15 #define ADDBA_STATUS_INVALID_PARAM 38
17 #define DELBA_REASON_QSTA_LEAVING 36
18 #define DELBA_REASON_END_BA 37
19 #define DELBA_REASON_UNKNOWN_BA 38
20 #define DELBA_REASON_TIMEOUT 39
21 /* whether need define BA Action frames here?
22 struct ieee80211_ADDBA_Req{
23 struct ieee80211_header_data header;
24 u8 category;
26 } __attribute__ ((packed));
28 //Is this need?I put here just to make it easier to define structure BA_RECORD //WB
29 typedef union _SEQUENCE_CONTROL{
30 u16 ShortData;
31 struct
33 u16 FragNum:4;
34 u16 SeqNum:12;
35 }field;
36 }SEQUENCE_CONTROL, *PSEQUENCE_CONTROL;
38 typedef union _BA_PARAM_SET {
39 u8 charData[2];
40 u16 shortData;
41 struct {
42 u16 AMSDU_Support:1;
43 u16 BAPolicy:1;
44 u16 TID:4;
45 u16 BufferSize:10;
46 } field;
47 } BA_PARAM_SET, *PBA_PARAM_SET;
49 typedef union _DELBA_PARAM_SET {
50 u8 charData[2];
51 u16 shortData;
52 struct {
53 u16 Reserved:11;
54 u16 Initiator:1;
55 u16 TID:4;
56 } field;
57 } DELBA_PARAM_SET, *PDELBA_PARAM_SET;
59 typedef struct _BA_RECORD {
60 struct timer_list Timer;
61 u8 bValid;
62 u8 DialogToken;
63 BA_PARAM_SET BaParamSet;
64 u16 BaTimeoutValue;
65 SEQUENCE_CONTROL BaStartSeqCtrl;
66 } BA_RECORD, *PBA_RECORD;
68 #endif //end _BATYPE_H_