tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/lmac_mac.h
old mode 100644new mode 100755
....@@ -434,6 +434,12 @@
434434 REASSOCIATION = BIT(5),
435435 };
436436
437
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
438
+#include <linux/ieee80211.h>
439
+#else
440
+#define CONFIG_HE_FOR_OLD_KERNEL 1
441
+#endif
442
+
437443 #ifdef CONFIG_HE_FOR_OLD_KERNEL
438444 #define IEEE80211_HE_MAC_CAP2_ALL_ACK 0x02
439445 #define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G 0x02
....@@ -465,9 +471,6 @@
465471
466472 #define IEEE80211_HE_PPE_THRES_MAX_LEN 25
467473
468
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
469
-#include <linux/ieee80211.h>
470
-#else
471474 struct ieee80211_he_cap_elem {
472475 u8 mac_cap_info[6];
473476 u8 phy_cap_info[11];
....@@ -495,5 +498,4 @@
495498 };
496499 #endif
497500
498
-#endif
499501 #endif // LMAC_MAC_H_