diff --git a/include/wifi.h b/include/wifi.h index 979860d..a1f2e82 100644 --- a/include/wifi.h +++ b/include/wifi.h @@ -15,14 +15,12 @@ #ifndef _WIFI_H_ #define _WIFI_H_ - #ifdef BIT /* #error "BIT define occurred earlier elsewhere!\n" */ #undef BIT #endif #define BIT(x) (1 << (x)) - #define WLAN_ETHHDR_LEN 14 #define WLAN_ETHADDR_LEN 6 #define WLAN_IEEE_OUI_LEN 3 @@ -1027,9 +1025,10 @@ typedef enum _HT_CAP_AMPDU_DENSITY { * 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 0x40 - +#define IEEE80211_MIN_AMPDU_BUF 0x8 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,19,0)) +#define IEEE80211_MAX_AMPDU_BUF 0x40 +#endif /* Spatial Multiplexing Power Save Modes */ #define WLAN_HT_CAP_SM_PS_STATIC 0 @@ -1037,7 +1036,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 @@ -1064,9 +1062,6 @@ typedef enum _HT_CAP_AMPDU_DENSITY { #define HT_INFO_STBC_PARAM_LSIG_TXOP_PROTECT_ALLOWED ((u16) BIT(9)) #define HT_INFO_STBC_PARAM_PCO_ACTIVE ((u16) BIT(10)) #define HT_INFO_STBC_PARAM_PCO_PHASE ((u16) BIT(11)) - - - /* #endif */ /* ===============WPS Section=============== */