From db930544a3d79c0806535d2db1918c580c3ebcf1 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Mon, 9 May 2016 16:15:52 +0000 Subject: [PATCH] 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 PR: 209328 --- sbin/ifconfig/ifieee80211.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 532c931c5ea..f1c543e1953 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -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) {