From owner-svn-src-all@FreeBSD.ORG Sat Oct 25 23:44:25 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 704FB106566C; Sat, 25 Oct 2008 23:44:25 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC568FC12; Sat, 25 Oct 2008 23:44:25 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9PNiPqN060790; Sat, 25 Oct 2008 23:44:25 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9PNiPod060789; Sat, 25 Oct 2008 23:44:25 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200810252344.m9PNiPod060789@svn.freebsd.org> From: Sam Leffler Date: Sat, 25 Oct 2008 23:44:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184279 - head/sys/net80211 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 25 Oct 2008 23:44:25 -0000 Author: sam Date: Sat Oct 25 23:44:25 2008 New Revision: 184279 URL: http://svn.freebsd.org/changeset/base/184279 Log: set erp flag and tx parameter state when joining a bss; this allows drivers to use ni_txparms Modified: head/sys/net80211/ieee80211_node.c Modified: head/sys/net80211/ieee80211_node.c ============================================================================== --- head/sys/net80211/ieee80211_node.c Sat Oct 25 23:43:08 2008 (r184278) +++ head/sys/net80211/ieee80211_node.c Sat Oct 25 23:44:25 2008 (r184279) @@ -749,6 +749,9 @@ ieee80211_sta_join(struct ieee80211vap * /* NB: must be after ni_chan is setup */ ieee80211_setup_rates(ni, se->se_rates, se->se_xrates, IEEE80211_F_DOSORT); + if (ieee80211_iserp_rateset(&ni->ni_rates)) + ni->ni_flags |= IEEE80211_NODE_ERP; + node_setuptxparms(ni); return ieee80211_sta_join1(ieee80211_ref_node(ni)); }