From owner-svn-src-head@freebsd.org Mon Feb 20 04:02:30 2017 Return-Path: Delivered-To: svn-src-head@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 B8EF8CE3DD8; Mon, 20 Feb 2017 04:02:30 +0000 (UTC) (envelope-from adrian@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 857ABCF6; Mon, 20 Feb 2017 04:02:30 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1K42TXh068804; Mon, 20 Feb 2017 04:02:29 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1K42Tvq068803; Mon, 20 Feb 2017 04:02:29 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201702200402.v1K42Tvq068803@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Mon, 20 Feb 2017 04:02:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313984 - head/sys/net80211 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2017 04:02:30 -0000 Author: adrian Date: Mon Feb 20 04:02:29 2017 New Revision: 313984 URL: https://svnweb.freebsd.org/changeset/base/313984 Log: [net80211] fix up VHT IE comparison typo Whilst here, add a comment that I need to validate VHT IEs. Modified: head/sys/net80211/ieee80211_hostap.c Modified: head/sys/net80211/ieee80211_hostap.c ============================================================================== --- head/sys/net80211/ieee80211_hostap.c Mon Feb 20 03:45:41 2017 (r313983) +++ head/sys/net80211/ieee80211_hostap.c Mon Feb 20 04:02:29 2017 (r313984) @@ -2101,6 +2101,8 @@ hostap_recv_mgmt(struct ieee80211_node * return); /* XXX just NULL out? */ } + /* XXX validate VHT IEs */ + if ((vap->iv_flags & IEEE80211_F_WPA) && !wpa_assocreq(ni, &rsnparms, wh, wpa, rsn, capinfo)) return; @@ -2152,7 +2154,7 @@ hostap_recv_mgmt(struct ieee80211_node * /* VHT */ if (IEEE80211_IS_CHAN_VHT(ni->ni_chan) && - htcap != NULL && + vhtcap != NULL && vhtinfo != NULL) { /* XXX TODO; see below */ printf("%s: VHT TODO!\n", __func__);