From owner-svn-src-all@freebsd.org Mon May 9 16:15:53 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42DFFB334BB; Mon, 9 May 2016 16:15:53 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1437C11FD; Mon, 9 May 2016 16:15:53 +0000 (UTC) (envelope-from avos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u49GFqEK033812; Mon, 9 May 2016 16:15:52 GMT (envelope-from avos@FreeBSD.org) Received: (from avos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u49GFqhP033811; Mon, 9 May 2016 16:15:52 GMT (envelope-from avos@FreeBSD.org) Message-Id: <201605091615.u49GFqhP033811@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avos set sender to avos@FreeBSD.org using -f From: Andriy Voskoboinyk Date: Mon, 9 May 2016 16:15:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299264 - head/sbin/ifconfig X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 16:15:53 -0000 Author: avos Date: Mon May 9 16:15:52 2016 New Revision: 299264 URL: https://svnweb.freebsd.org/changeset/base/299264 Log: 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 Modified: head/sbin/ifconfig/ifieee80211.c Modified: head/sbin/ifconfig/ifieee80211.c ============================================================================== --- head/sbin/ifconfig/ifieee80211.c Mon May 9 16:12:32 2016 (r299263) +++ head/sbin/ifconfig/ifieee80211.c Mon May 9 16:15:52 2016 (r299264) @@ -1984,10 +1984,6 @@ checkchan(const struct ieee80211req_chan * 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) {