Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/audit
[deliverable/linux.git] / drivers / staging / rtl8192e / rtl819x_BA.h
CommitLineData
94a79942
LF
1/******************************************************************************
2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3 *
4 * This program is distributed in the hope that it will be useful, but WITHOUT
5 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
7 * more details.
8 *
94a79942
LF
9 * The full GNU General Public License is included in this distribution in the
10 * file called LICENSE.
11 *
12 * Contact Information:
13 * wlanfae <wlanfae@realtek.com>
14******************************************************************************/
ecdfa446
GKH
15#ifndef _BATYPE_H_
16#define _BATYPE_H_
17
ecdfa446 18#define BA_SETUP_TIMEOUT 200
ecdfa446
GKH
19
20#define BA_POLICY_DELAYED 0
21#define BA_POLICY_IMMEDIATE 1
22
23#define ADDBA_STATUS_SUCCESS 0
24#define ADDBA_STATUS_REFUSED 37
25#define ADDBA_STATUS_INVALID_PARAM 38
26
ecdfa446
GKH
27#define DELBA_REASON_END_BA 37
28#define DELBA_REASON_UNKNOWN_BA 38
29#define DELBA_REASON_TIMEOUT 39
7baf9546 30union sequence_control {
ecdfa446 31 u16 ShortData;
831cb9db 32 struct {
ecdfa446
GKH
33 u16 FragNum:4;
34 u16 SeqNum:12;
831cb9db 35 } field;
7baf9546 36};
ecdfa446 37
6857f367 38union ba_param_set {
ecdfa446
GKH
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;
6857f367 47};
ecdfa446 48
f198db0c 49union delba_param_set {
ecdfa446
GKH
50 u8 charData[2];
51 u16 shortData;
52 struct {
53 u16 Reserved:11;
54 u16 Initiator:1;
55 u16 TID:4;
56 } field;
f198db0c 57};
ecdfa446 58
8cf33316 59struct ba_record {
ecdfa446
GKH
60 struct timer_list Timer;
61 u8 bValid;
62 u8 DialogToken;
6857f367 63 union ba_param_set BaParamSet;
ecdfa446 64 u16 BaTimeoutValue;
7baf9546 65 union sequence_control BaStartSeqCtrl;
8cf33316 66};
ecdfa446 67
94a79942 68#endif
This page took 0.494832 seconds and 5 git commands to generate.