Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2010 12:28:24 +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: r215560 - stable/8/sys/net80211
Message-ID:  <201011201228.oAKCSOEG011787@svn.freebsd.org>

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

Log:
  MFC r215289:
  The ni_rctls checks are used to verify that a ratectl algo has set up
  its internal data. This has been used to bypass missing calls in drivers
  which do not use the ratectl framework correctly. Issue is, not all algos
  use that variable, or even have internal data, therefore valid calls are
  not done. Fix this by removing the checks, all driver issues should be
  resolved.

Modified:
  stable/8/sys/net80211/ieee80211_ratectl.h
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.h
==============================================================================
--- stable/8/sys/net80211/ieee80211_ratectl.h	Sat Nov 20 12:27:40 2010	(r215559)
+++ stable/8/sys/net80211/ieee80211_ratectl.h	Sat Nov 20 12:28:24 2010	(r215560)
@@ -81,8 +81,6 @@ ieee80211_ratectl_node_deinit(struct iee
 {
 	const struct ieee80211vap *vap = ni->ni_vap;
 
-	if (ni->ni_rctls == NULL)	/* ratectl not setup */
-		return;
 	vap->iv_rate->ir_node_deinit(ni);
 }
 
@@ -91,8 +89,6 @@ ieee80211_ratectl_rate(struct ieee80211_
 {
 	const struct ieee80211vap *vap = ni->ni_vap;
 
-	if (ni->ni_rctls == NULL)	/* ratectl not setup */
-		return 0;
 	return vap->iv_rate->ir_rate(ni, arg, iarg);
 }
 
@@ -100,8 +96,6 @@ static void __inline
 ieee80211_ratectl_tx_complete(const struct ieee80211vap *vap,
     const struct ieee80211_node *ni, int status, void *arg1, void *arg2)
 {
-	if (ni->ni_rctls == NULL)	/* ratectl not setup */
-		return;
 	vap->iv_rate->ir_tx_complete(vap, ni, status, arg1, arg2);
 }
 
@@ -111,8 +105,6 @@ ieee80211_ratectl_tx_update(const struct
 {
 	if (vap->iv_rate->ir_tx_update == NULL)
 		return;
-	if (ni->ni_rctls == NULL)	/* ratectl not setup */
-		return;
 	vap->iv_rate->ir_tx_update(vap, ni, arg1, arg2, arg3);
 }
 



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