From 29179862366e5f6ba6c248c3d21cd00280e394a7 Mon Sep 17 00:00:00 2001 From: astsam Date: Tue, 28 Mar 2017 21:05:32 +0300 Subject: [PATCH] Fix compilation error under kernel 3.13 --- os_dep/linux/wifi_regd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index df8f964..b2c6052 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -322,7 +322,12 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy) if (ch) ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS| IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_80MHZ| - IEEE80211_CHAN_NO_160MHZ|IEEE80211_CHAN_NO_IR); + IEEE80211_CHAN_NO_160MHZ| +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)) + IEEE80211_CHAN_NO_IBSS|IEEE80211_CHAN_PASSIVE_SCAN); +#else + IEEE80211_CHAN_NO_IR); +#endif } } }