brcm80211: use proper ieee80211 routines
[firefly-linux-kernel-4.4.55.git] / drivers / staging / brcm80211 / include / proto / 802.11.h
index 08aed61756c286d249264b556a71bb6e45e4ac5b..5cdfc7a6e80cbe112216e83bafd68633c34a905a 100644 (file)
 #define DOT11_BA_BITMAP_LEN            128
 #define DOT11_BA_LEN           4
 
-#define        DOT11_MGMT_HDR_LEN      24
-
-struct dot11_bcn_prb {
-       u32 timestamp[2];
-       u16 beacon_interval;
-       u16 capability;
-} __attribute__((packed));
-#define        DOT11_BCN_PRB_LEN       12
-
 #define WME_OUI                        "\x00\x50\xf2"
 #define WME_VER                        1
 #define WME_TYPE               2
@@ -121,24 +112,10 @@ typedef struct wme_param_ie wme_param_ie_t;
 
 #define EDCF_AC_VO_TXOP_AP           0x002f
 
-#define DOT11_OPEN_SYSTEM      0
-#define DOT11_SHARED_KEY       1
-
 #define SEQNUM_SHIFT           4
 #define SEQNUM_MAX             0x1000
 #define FRAGNUM_MASK           0xF
 
-#define FC_SUBTYPE_ANY_QOS(s)  ((((fc) & IEEE80211_FCTL_STYPE & (1<<7))) != 0)
-
-#define FC_KIND_MASK           (IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)
-
-#define FC_PROBE_REQ   (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_REQ)
-#define FC_PROBE_RESP  (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP)
-#define FC_BEACON      (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON)
-#define FC_PS_POLL     (IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL)
-#define FC_RTS         (IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS)
-#define FC_CTS         (IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS)
-
 #define TLV_LEN_OFF            1
 #define TLV_HDR_LEN            2
 #define TLV_BODY_OFF           2
@@ -196,34 +173,12 @@ typedef struct d11cnt {
 
 #define MCSSET_LEN     16
 
-struct ht_cap_ie {
-       u16 cap;
-       u8 params;
-       u8 supp_mcs[MCSSET_LEN];
-       u16 ext_htcap;
-       u32 txbf_cap;
-       u8 as_cap;
-} __attribute__((packed));
-typedef struct ht_cap_ie ht_cap_ie_t;
-
 #define HT_CAP_IE_LEN          26
 
-#define HT_CAP_MIMO_PS_MASK    0x000C
-#define HT_CAP_MIMO_PS_OFF     0x0003
-#define HT_CAP_MIMO_PS_ON      0x0000
-#define HT_CAP_RX_STBC_MASK    0x0300
-#define HT_CAP_RX_STBC_SHIFT   8
-#define HT_CAP_MAX_AMSDU       0x0800
-
 #define HT_CAP_RX_STBC_NO              0x0
 #define HT_CAP_RX_STBC_ONE_STREAM      0x1
 
-#define HT_PARAMS_RX_FACTOR_MASK       0x03
-
-#define AMPDU_MAX_MPDU_DENSITY 7
-#define AMPDU_RX_FACTOR_16K    1
-#define AMPDU_RX_FACTOR_32K    2
-#define AMPDU_RX_FACTOR_64K    3
+#define AMPDU_MAX_MPDU_DENSITY IEEE80211_HT_MPDU_DENSITY_16
 
 #define AMPDU_DELIMITER_LEN    4
 
@@ -242,7 +197,6 @@ typedef struct ht_cap_ie ht_cap_ie_t;
 #define RSN_AKM_PSK            2
 
 #define DOT11_MAX_DEFAULT_KEYS 4
-#define DOT11_MAX_KEY_SIZE     32
 #define DOT11_WPA_KEY_RSC_LEN   8
 
 #define BRCM_OUI               "\x00\x10\x18"