diff options
author | sam <sam@FreeBSD.org> | 2009-01-07 18:17:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-01-07 18:17:36 +0000 |
commit | a2d76da02a567c84c1132684aaf59809f814cbd3 (patch) | |
tree | bd286fdf39ce005f7d56094984343de2a443dd93 /sys | |
parent | 85cc44f9ee0f141e71b4ae69349d0acd32541303 (diff) | |
download | FreeBSD-src-a2d76da02a567c84c1132684aaf59809f814cbd3.zip FreeBSD-src-a2d76da02a567c84c1132684aaf59809f814cbd3.tar.gz |
only mark an infrastructure node to require an associd for xmit; fixes adhoc
mode sta's that join an existing ibss
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 742f4c4..d01b766 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -732,7 +732,10 @@ ieee80211_sta_join(struct ieee80211vap *vap, struct ieee80211_channel *chan, 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); |