From ffa2eb7b9fb037fcfa3b1de2bbcc96a0f002d858 Mon Sep 17 00:00:00 2001 From: Sergei Makarenkov Date: Fri, 10 Feb 2017 16:43:48 +0300 Subject: [PATCH] Fix error switching to 80MHz channels under certain conditions --- os_dep/linux/wifi_regd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 4bd84a8..5d03b22 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -320,7 +320,9 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy) ch = &sband->channels[j]; if (ch) - ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS|IEEE80211_CHAN_NO_HT40MINUS); + ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS| + IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_80MHZ| + IEEE80211_CHAN_NO_160MHZ); } } }