Merge tag 'hwspinlock-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad...
[cascardo/linux.git] / drivers / staging / rtl8192ee / compat.h
1 #ifndef __RTL_COMPAT_H__
2 #define __RTL_COMPAT_H__
3
4
5 #define RX_FLAG_MACTIME_MPDU RX_FLAG_MACTIME_START
6
7 #define IEEE80211_KEY_FLAG_SW_MGMT IEEE80211_KEY_FLAG_SW_MGMT_TX
8
9 struct ieee80211_mgmt_compat {
10         __le16 frame_control;
11         __le16 duration;
12         u8 da[6];
13         u8 sa[6];
14         u8 bssid[6];
15         __le16 seq_ctrl;
16         union {
17                 struct {
18                         u8 category;
19                         union {
20                                 struct {
21                                         u8 action_code;
22                                         u8 dialog_token;
23                                         u8 status_code;
24                                         u8 variable[0];
25                                 } __packed wme_action;
26                                 struct {
27                                         u8 action_code;
28                                         u8 dialog_token;
29                                         __le16 capab;
30                                         __le16 timeout;
31                                         __le16 start_seq_num;
32                                 } __packed addba_req;
33                                 struct{
34                                         u8 action_code;
35                                         u8 dialog_token;
36                                         __le16 status;
37                                         __le16 capab;
38                                         __le16 timeout;
39                                 } __packed addba_resp;
40                                 struct {
41                                         u8 action_code;
42                                         __le16 params;
43                                         __le16 reason_code;
44                                 } __packed delba;
45                                 struct {
46                                         u8 action_code;
47                                         /* capab_info for open and confirm,
48                                          * reason for close
49                                          */
50                                         __le16 aux;
51                                         /* Followed in plink_confirm by status
52                                          * code, AID and supported rates,
53                                          * and directly by supported rates in
54                                          * plink_open and plink_close
55                                          */
56                                         u8 variable[0];
57                                 } __packed plink_action;
58                                 struct {
59                                         u8 action_code;
60                                         u8 variable[0];
61                                 } __packed mesh_action;
62                                 struct {
63                                         u8 action;
64                                         u8 smps_control;
65                                 } __packed ht_smps;
66                         } u;
67                 } __packed action;
68         } u;
69 } __packed;
70 #endif