svn commit: r213321 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Fri Oct 1 09:18:31 UTC 2010


Author: adrian
Date: Fri Oct  1 09:18:30 2010
New Revision: 213321
URL: http://svn.freebsd.org/changeset/base/213321

Log:
  Fix background roaming to actually work in AUTO roaming mode.
  
  IEEE80211_F_BGSCAN is a vap flag, not a channel flag. So although bgscan
  occured, sta_roam_check() would never be called.

Modified:
  head/sys/net80211/ieee80211_scan_sta.c

Modified: head/sys/net80211/ieee80211_scan_sta.c
==============================================================================
--- head/sys/net80211/ieee80211_scan_sta.c	Fri Oct  1 07:59:26 2010	(r213320)
+++ head/sys/net80211/ieee80211_scan_sta.c	Fri Oct  1 09:18:30 2010	(r213321)
@@ -1361,7 +1361,7 @@ sta_age(struct ieee80211_scan_state *ss)
 	KASSERT(vap->iv_opmode == IEEE80211_M_STA,
 		("wrong mode %u", vap->iv_opmode));
 	if (vap->iv_roaming == IEEE80211_ROAMING_AUTO &&
-	    (vap->iv_ic->ic_flags & IEEE80211_F_BGSCAN) &&
+	    (vap->iv_flags & IEEE80211_F_BGSCAN) &&
 	    vap->iv_state >= IEEE80211_S_RUN)
 		/* XXX vap is implicit */
 		sta_roam_check(ss, vap);


More information about the svn-src-all mailing list