diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2011-01-17 20:15:15 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2011-01-17 20:15:15 +0000 |
commit | c0217db66ac0956dccf4f7a81f3e7b48caf135a0 (patch) | |
tree | 0737c0999ebe2b30e240ad50e294383cc8d67c83 /sys/net80211/ieee80211_node.c | |
parent | f4390b5740c43afad7218e4bd73f5e0a0b5817c3 (diff) | |
download | FreeBSD-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.c | 4 |
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++; |