Fix error switching to 80MHz channels under certain conditions

This commit is contained in:
Sergei Makarenkov 2017-02-10 16:43:48 +03:00 committed by astsam
parent 7e48715dee
commit 16a1de0c6f

View File

@ -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);
}
}
}