mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ifconfig: fix check for 40 MHz channels while applying country/regdomain.
Do not use 20 MHz channel list while checking 40 MHz channels; it may be different. Just use the corresponding list instead. Tested by: Masachika ISHIZUKA <ish@amail.plala.or.jp> PR: 209328
This commit is contained in:
parent
28ae62b066
commit
db930544a3
1 changed files with 0 additions and 4 deletions
|
|
@ -1984,10 +1984,6 @@ checkchan(const struct ieee80211req_chaninfo *avail, int freq, int flags)
|
|||
* everything below is to deal with channels that we
|
||||
* want to include but that are not explicitly listed.
|
||||
*/
|
||||
if (flags & IEEE80211_CHAN_HT40) {
|
||||
/* NB: we use an HT40 channel center that matches HT20 */
|
||||
flags = (flags &~ IEEE80211_CHAN_HT40) | IEEE80211_CHAN_HT20;
|
||||
}
|
||||
if (chanlookup(avail->ic_chans, avail->ic_nchans, freq, flags) != NULL)
|
||||
return 1;
|
||||
if (flags & IEEE80211_CHAN_GSM) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue