diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2010-08-14 20:12:10 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2010-08-14 20:12:10 +0000 |
commit | 267bcceb3d9d51963daee114cc9bf9489dea3825 (patch) | |
tree | 91ed3ee979937a33ff768793756b4e3080f66e14 /sys/net80211/ieee80211_sta.c | |
parent | 50862398d57767264019513ed29d01032aff7037 (diff) | |
download | FreeBSD-src-267bcceb3d9d51963daee114cc9bf9489dea3825.zip FreeBSD-src-267bcceb3d9d51963daee114cc9bf9489dea3825.tar.gz |
Introduce IEEE80211_C_RATECTL, drivers which use the ratectl framework
should set this capability.
MFC after: 2 weeks
Diffstat (limited to 'sys/net80211/ieee80211_sta.c')
-rw-r--r-- | sys/net80211/ieee80211_sta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_sta.c b/sys/net80211/ieee80211_sta.c index f93c3ed..5764fa0 100644 --- a/sys/net80211/ieee80211_sta.c +++ b/sys/net80211/ieee80211_sta.c @@ -1597,7 +1597,8 @@ sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0, IEEE80211_F_JOIN | IEEE80211_F_DOBRS); ieee80211_setup_basic_htrates(ni, htinfo); ieee80211_node_setuptxparms(ni); - ieee80211_ratectl_node_init(ni); + if (vap->iv_caps & IEEE80211_C_RATECTL) + ieee80211_ratectl_node_init(ni); } else { #ifdef IEEE80211_SUPPORT_SUPERG if (IEEE80211_ATH_CAP(vap, ni, IEEE80211_NODE_ATH)) |