summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravos <avos@FreeBSD.org>2016-05-09 16:15:52 +0000
committeravos <avos@FreeBSD.org>2016-05-09 16:15:52 +0000
commitad6a78b8ebfef7f691c9c987ca4f06dc06618e3e (patch)
tree59d0efacd7283ed45223c1204154a55884c3f58c
parentb6372f21593ce505e7c59568e2f3440f50d91a27 (diff)
downloadFreeBSD-src-ad6a78b8ebfef7f691c9c987ca4f06dc06618e3e.zip
FreeBSD-src-ad6a78b8ebfef7f691c9c987ca4f06dc06618e3e.tar.gz
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
-rw-r--r--sbin/ifconfig/ifieee80211.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 532c931..f1c543e 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) {
OpenPOWER on IntegriCloud