From 7438cee62ee95410a20f9986f7ede98d937db256 Mon Sep 17 00:00:00 2001 From: Bernhard Schmidt Date: Sat, 13 Nov 2010 14:59:54 +0000 Subject: [PATCH] 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 --- sys/net80211/ieee80211_ratectl_none.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net80211/ieee80211_ratectl_none.c b/sys/net80211/ieee80211_ratectl_none.c index 0979e9d942c9..0edec449ec3b 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