From ce9a4551cebb25e30df75962487e5c30dd18c323 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 11 Nov 2019 02:14:15 +0100 Subject: [PATCH] fix upstream AMPDU changes --- include/wifi.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/wifi.h b/include/wifi.h index 9d9c0d7..04b53d5 100644 --- a/include/wifi.h +++ b/include/wifi.h @@ -15,12 +15,10 @@ #ifndef _WIFI_H_ #define _WIFI_H_ - #ifndef BIT #define BIT(x) (1 << (x)) #endif - #define WLAN_ETHHDR_LEN 14 #define WLAN_ETHADDR_LEN 6 #define WLAN_IEEE_OUI_LEN 3 @@ -1029,13 +1027,14 @@ typedef enum _HT_CAP_AMPDU_DENSITY { #define IEEE80211_DELBA_PARAM_TID_MASK 0xF000 #define IEEE80211_DELBA_PARAM_INITIATOR_MASK 0x0800 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)) /* * A-PMDU buffer sizes * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2) */ #define IEEE80211_MIN_AMPDU_BUF 0x8 #define IEEE80211_MAX_AMPDU_BUF_HT 0x40 - +#endif /* Spatial Multiplexing Power Save Modes */ #define WLAN_HT_CAP_SM_PS_STATIC 0 @@ -1043,7 +1042,6 @@ typedef enum _HT_CAP_AMPDU_DENSITY { #define WLAN_HT_CAP_SM_PS_INVALID 2 #define WLAN_HT_CAP_SM_PS_DISABLED 3 - #define OP_MODE_PURE 0 #define OP_MODE_MAY_BE_LEGACY_STAS 1 #define OP_MODE_20MHZ_HT_STA_ASSOCED 2 @@ -1071,8 +1069,6 @@ typedef enum _HT_CAP_AMPDU_DENSITY { #define HT_INFO_STBC_PARAM_PCO_ACTIVE ((u16) BIT(10)) #define HT_INFO_STBC_PARAM_PCO_PHASE ((u16) BIT(11)) - - /* #endif */ /* ===============WPS Section=============== */