diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2010-11-13 14:59:54 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2010-11-13 14:59:54 +0000 |
commit | 9c06f525700133597ba1c1a9aeba2432b1f3fea2 (patch) | |
tree | 64e2e8383a3494099efe1ab09c53b1ed3b3d576d /sys/net80211/ieee80211_ratectl_none.c | |
parent | c0d6d04d712c9b773c0b658901e781197e1332ab (diff) | |
download | FreeBSD-src-9c06f525700133597ba1c1a9aeba2432b1f3fea2.zip FreeBSD-src-9c06f525700133597ba1c1a9aeba2432b1f3fea2.tar.gz |
Some device drivers calculate various timing related things based on
the currently selected rate. The calculations of course need a valid
rate. To make that possible before any call to node_rate() is done,
initialize ni_txrate on none_node_init() calls.
MFC after: 1 week
Diffstat (limited to 'sys/net80211/ieee80211_ratectl_none.c')
-rw-r--r-- | sys/net80211/ieee80211_ratectl_none.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ratectl_none.c b/sys/net80211/ieee80211_ratectl_none.c index 0979e9d..0edec44 100644 --- a/sys/net80211/ieee80211_ratectl_none.c +++ b/sys/net80211/ieee80211_ratectl_none.c @@ -59,6 +59,7 @@ none_deinit(struct ieee80211vap *vap) static void none_node_init(struct ieee80211_node *ni) { + ni->ni_txrate = ni->ni_rates.rs_rates[0] & IEEE80211_RATE_VAL; } static void |