diff options
author | sam <sam@FreeBSD.org> | 2008-10-25 23:44:25 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-10-25 23:44:25 +0000 |
commit | f136c60eb32e2b6fc78c9c3396e0f43a8382b151 (patch) | |
tree | cea4528896c50d0d81cbc93e4195ca23b2a67fb7 /sys/net80211 | |
parent | d513eda8c8ece4d2c9fe8a449d941d6e4dc6f5e2 (diff) | |
download | FreeBSD-src-f136c60eb32e2b6fc78c9c3396e0f43a8382b151.zip FreeBSD-src-f136c60eb32e2b6fc78c9c3396e0f43a8382b151.tar.gz |
set erp flag and tx parameter state when joining a bss; this allows
drivers to use ni_txparms
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 54b9513..6bbef44 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -749,6 +749,9 @@ ieee80211_sta_join(struct ieee80211vap *vap, struct ieee80211_channel *chan, /* 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)); } |