svn commit: r215244 - head/sys/net80211

Bernhard Schmidt bschmidt at FreeBSD.org
Sat Nov 13 14:59:55 UTC 2010


Author: bschmidt
Date: Sat Nov 13 14:59:54 2010
New Revision: 215244
URL: http://svn.freebsd.org/changeset/base/215244

Log:
  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

Modified:
  head/sys/net80211/ieee80211_ratectl_none.c

Modified: head/sys/net80211/ieee80211_ratectl_none.c
==============================================================================
--- head/sys/net80211/ieee80211_ratectl_none.c	Sat Nov 13 13:46:33 2010	(r215243)
+++ head/sys/net80211/ieee80211_ratectl_none.c	Sat Nov 13 14:59:54 2010	(r215244)
@@ -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


More information about the svn-src-head mailing list