svn commit: r188925 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Sun Feb 22 10:48:55 PST 2009


Author: sam
Date: Sun Feb 22 18:48:54 2009
New Revision: 188925
URL: http://svn.freebsd.org/changeset/base/188925

Log:
  change tdma slave behaviour: if the channel is locked don't do bmiss handling
  (so no scanning/roaming)
  
  Reviewed by:	Chris Anderson

Modified:
  head/sys/net80211/ieee80211_tdma.c

Modified: head/sys/net80211/ieee80211_tdma.c
==============================================================================
--- head/sys/net80211/ieee80211_tdma.c	Sun Feb 22 18:46:36 2009	(r188924)
+++ head/sys/net80211/ieee80211_tdma.c	Sun Feb 22 18:48:54 2009	(r188925)
@@ -240,11 +240,14 @@ tdma_newstate(struct ieee80211vap *vap, 
 	if (status == 0 && 
 	    nstate == IEEE80211_S_RUN && ostate != IEEE80211_S_RUN &&
 	    (vap->iv_flags_ext & IEEE80211_FEXT_SWBMISS) &&
-	    ts->tdma_slot != 0) {
+	    ts->tdma_slot != 0 &&
+	    vap->iv_des_chan == IEEE80211_CHAN_ANYC) {
 		/*
 		 * Start s/w beacon miss timer for slave devices w/o
-		 * hardware support.  The 2x is a fudge for our doing
-		 * this in software.
+		 * hardware support.  Note we do this only if we're
+		 * not locked to a channel (i.e. roam to follow the
+		 * master). The 2x is a fudge for our doing this in
+		 * software.
 		 */
 		vap->iv_swbmiss_period = IEEE80211_TU_TO_TICKS(
 		    2 * vap->iv_bmissthreshold * ts->tdma_bintval *


More information about the svn-src-head mailing list