Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 21:59:35 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 77084 for review
Message-ID:  <200505162159.j4GLxZfP051243@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77084

Change 77084 by sam@sam_laptop on 2005/05/16 21:59:27

	don't do bg scanning when in turbo mode on a dynamic turbo
	channel (bad idea); fixup a comment while in the vicinity

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_input.c#11 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_input.c#11 (text+ko) ====

@@ -2321,12 +2321,20 @@
 				ieee80211_parse_dothparams(vap, scan.doth, wh);
 			if ((ic->ic_flags & IEEE80211_F_SCAN) == 0) {
 				/*
-				 * If no data frames have come through
-				 * recently and it's been a while since the
-				 * last background scan, kick off a new
-				 * background scan.
+				 * Check if it's the right time to do a
+				 * background scan.  Background scanning must
+				 * be enabled and we must not be operating in
+				 * turbo phase of dynamic turbo mode.  Then,
+				 * it's been a while since the last background
+				 * scan and if no data frames have come through
+				 * recently, kick off a scan.  Note that this
+				 * is the mechanism by which a background scan
+				 * is started _and_ continued each time we
+				 * return on-channel to receive a beacon from
+				 * our ap.
 				 */
 				if ((vap->iv_flags & IEEE80211_F_BGSCAN) &&
+				    !IEEE80211_IS_CHAN_DTURBO(ic->ic_curchan) &&
 				    ticks - ic->ic_lastscan >= vap->iv_bgscanintvl &&
 				    ticks - ic->ic_lastdata >= vap->iv_bgscanidle)
 					ieee80211_bg_scan(vap);



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