From 116e984cd02dc1ba09baae448f4e42982dcc8efd Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 2 Jul 2018 21:55:43 +0200 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 450d4b3..796d27b 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -332,7 +332,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); //ch->flags = IEEE80211_CHAN_DISABLED; } }