PERFORCE change 77084 for review
Sam Leffler
sam at FreeBSD.org
Mon May 16 14:59:41 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=77084
Change 77084 by sam at 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);
More information about the p4-projects
mailing list