Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 18:17:36 +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: r186870 - head/sys/net80211
Message-ID:  <200901071817.n07IHakT094752@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Wed Jan  7 18:17:36 2009
New Revision: 186870
URL: http://svn.freebsd.org/changeset/base/186870

Log:
  only mark an infrastructure node to require an associd for xmit; fixes adhoc
  mode sta's that join an existing ibss

Modified:
  head/sys/net80211/ieee80211_node.c

Modified: head/sys/net80211/ieee80211_node.c
==============================================================================
--- head/sys/net80211/ieee80211_node.c	Wed Jan  7 18:02:36 2009	(r186869)
+++ head/sys/net80211/ieee80211_node.c	Wed Jan  7 18:17:36 2009	(r186870)
@@ -732,7 +732,10 @@ ieee80211_sta_join(struct ieee80211vap *
 	ni->ni_erp = se->se_erp;
 	IEEE80211_RSSI_LPF(ni->ni_avgrssi, se->se_rssi);
 	ni->ni_noise = se->se_noise;
-	ni->ni_flags |= IEEE80211_NODE_ASSOCID;
+	if (vap->iv_opmode == IEEE80211_M_STA) {
+		/* NB: only infrastructure mode requires an associd */
+		ni->ni_flags |= IEEE80211_NODE_ASSOCID;
+	}
 
 	if (ieee80211_ies_init(&ni->ni_ies, se->se_ies.data, se->se_ies.len)) {
 		ieee80211_ies_expand(&ni->ni_ies);



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