summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2011-01-17 20:15:15 +0000
committerbschmidt <bschmidt@FreeBSD.org>2011-01-17 20:15:15 +0000
commitc0217db66ac0956dccf4f7a81f3e7b48caf135a0 (patch)
tree0737c0999ebe2b30e240ad50e294383cc8d67c83 /sys/net80211/ieee80211_node.c
parentf4390b5740c43afad7218e4bd73f5e0a0b5817c3 (diff)
downloadFreeBSD-src-c0217db66ac0956dccf4f7a81f3e7b48caf135a0.zip
FreeBSD-src-c0217db66ac0956dccf4f7a81f3e7b48caf135a0.tar.gz
Pull ieee80211_ratectl_node_init() calls from drivers into net80211.
This fixes hostap mode for at least ral(4) and run(4), because there is no sufficient call into drivers which could be used initialize the node related ratectl variables. MFC after: 3 days
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 2c1acff..7752c6d 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1137,6 +1137,8 @@ ieee80211_alloc_node(struct ieee80211_node_table *nt,
IEEE80211_NOTE(vap, IEEE80211_MSG_INACT, ni,
"%s: inact_reload %u", __func__, ni->ni_inact_reload);
+ ieee80211_ratectl_node_init(ni);
+
return ni;
}
@@ -1174,6 +1176,8 @@ ieee80211_tmp_node(struct ieee80211vap *vap,
ni->ni_txpower = bss->ni_txpower;
/* XXX optimize away */
ieee80211_psq_init(&ni->ni_psq, "unknown");
+
+ ieee80211_ratectl_node_init(ni);
} else {
/* XXX msg */
vap->iv_stats.is_rx_nodealloc++;
OpenPOWER on IntegriCloud