Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2010 12:26:31 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r215558 - stable/8/sys/net80211
Message-ID:  <201011201226.oAKCQVB3011657@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bschmidt
Date: Sat Nov 20 12:26:31 2010
New Revision: 215558
URL: http://svn.freebsd.org/changeset/base/215558

Log:
  MFC r215244:
  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.

Modified:
  stable/8/sys/net80211/ieee80211_ratectl_none.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/net80211/ieee80211_ratectl_none.c
==============================================================================
--- stable/8/sys/net80211/ieee80211_ratectl_none.c	Sat Nov 20 12:24:26 2010	(r215557)
+++ stable/8/sys/net80211/ieee80211_ratectl_none.c	Sat Nov 20 12:26:31 2010	(r215558)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011201226.oAKCQVB3011657>