Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2008 23:44:25 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184279 - head/sys/net80211
Message-ID:  <200810252344.m9PNiPod060789@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810252344.m9PNiPod060789>