From e8489af6b9b551fbbf4e73a1202713e0f5e7c00c Mon Sep 17 00:00:00 2001 From: Christian B Date: Fri, 25 Jan 2019 21:35:55 +0100 Subject: [PATCH] IEEE -> NL --- os_dep/linux/wifi_regd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 6a8ff0e..8903232 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -19,6 +19,12 @@ #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) + #define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ + #define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ + #define IEEE80211_NUM_BANDS NL80211_NUM_BANDS +#endif + static struct country_code_to_enum_rd allCountries[] = { {COUNTRY_CODE_USER, "RD"}, };