Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 19:07:56 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190450 - head/sys/net80211
Message-ID:  <200903261907.n2QJ7utA029389@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Thu Mar 26 19:07:56 2009
New Revision: 190450
URL: http://svn.freebsd.org/changeset/base/190450

Log:
  dynamic turbo mode is only implemented in sta mode; don't enable it
  for other operating modes based on the capability

Modified:
  head/sys/net80211/ieee80211_superg.c

Modified: head/sys/net80211/ieee80211_superg.c
==============================================================================
--- head/sys/net80211/ieee80211_superg.c	Thu Mar 26 19:06:00 2009	(r190449)
+++ head/sys/net80211/ieee80211_superg.c	Thu Mar 26 19:07:56 2009	(r190450)
@@ -65,7 +65,9 @@ ieee80211_superg_vattach(struct ieee8021
 {
 	if (vap->iv_caps & IEEE80211_C_FF)
 		vap->iv_flags |= IEEE80211_F_FF;
-	if (vap->iv_caps & IEEE80211_C_TURBOP)
+	/* NB: we only implement sta mode */
+	if (vap->iv_opmode == IEEE80211_M_STA &&
+	    (vap->iv_caps & IEEE80211_C_TURBOP))
 		vap->iv_flags |= IEEE80211_F_TURBOP;
 }
 



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