summaryrefslogtreecommitdiffstats
path: root/sys/dev/bwn
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/dev/bwn
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/dev/bwn')
-rw-r--r--sys/dev/bwn/if_bwn.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index f75c1ad..e43f413 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -8329,7 +8329,6 @@ bwn_phy_reset(struct bwn_mac *mac)
static int
bwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
{
- const struct ieee80211_txparam *tp;
struct bwn_vap *bvp = BWN_VAP(vap);
struct ieee80211com *ic= vap->iv_ic;
struct ifnet *ifp = ic->ic_ifp;
@@ -8378,11 +8377,6 @@ bwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
bwn_set_pretbtt(mac);
bwn_spu_setdelay(mac, 0);
bwn_set_macaddr(mac);
-
- /* Initializes ratectl for a node. */
- tp = &vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)];
- if (tp->ucastrate == IEEE80211_FIXED_RATE_NONE)
- ieee80211_ratectl_node_init(vap->iv_bss);
}
BWN_UNLOCK(sc);
OpenPOWER on IntegriCloud