Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2009 18:48:54 +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: r188925 - head/sys/net80211
Message-ID:  <200902221848.n1MImswD003654@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *



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