old mode 100644new mode 100755.. | .. |
---|
434 | 434 | REASSOCIATION = BIT(5), |
---|
435 | 435 | }; |
---|
436 | 436 | |
---|
| 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 | + |
---|
437 | 443 | #ifdef CONFIG_HE_FOR_OLD_KERNEL |
---|
438 | 444 | #define IEEE80211_HE_MAC_CAP2_ALL_ACK 0x02 |
---|
439 | 445 | #define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G 0x02 |
---|
.. | .. |
---|
465 | 471 | |
---|
466 | 472 | #define IEEE80211_HE_PPE_THRES_MAX_LEN 25 |
---|
467 | 473 | |
---|
468 | | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) |
---|
469 | | -#include <linux/ieee80211.h> |
---|
470 | | -#else |
---|
471 | 474 | struct ieee80211_he_cap_elem { |
---|
472 | 475 | u8 mac_cap_info[6]; |
---|
473 | 476 | u8 phy_cap_info[11]; |
---|
.. | .. |
---|
495 | 498 | }; |
---|
496 | 499 | #endif |
---|
497 | 500 | |
---|
498 | | -#endif |
---|
499 | 501 | #endif // LMAC_MAC_H_ |
---|