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
This commit is contained in:
Bernhard Schmidt 2010-11-13 14:59:54 +00:00
parent 27387daca6
commit 7438cee62e

View File

@ -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