svn commit: r232375 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Fri Mar 2 03:11:53 UTC 2012


Author: adrian
Date: Fri Mar  2 03:11:53 2012
New Revision: 232375
URL: http://svn.freebsd.org/changeset/base/232375

Log:
  Wrap another ATH_LOCK around the scanning flag.
  
  PR:		kern/163318

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Fri Mar  2 02:57:10 2012	(r232374)
+++ head/sys/dev/ath/if_ath.c	Fri Mar  2 03:11:53 2012	(r232375)
@@ -5690,8 +5690,10 @@ ath_set_channel(struct ieee80211com *ic)
 	 * beacon timers.  Note that since we only hear beacons in
 	 * sta/ibss mode this has no effect in other operating modes.
 	 */
+	ATH_LOCK(sc);
 	if (!sc->sc_scanning && ic->ic_curchan == ic->ic_bsschan)
 		sc->sc_syncbeacon = 1;
+	ATH_UNLOCK(sc);
 }
 
 /*


More information about the svn-src-head mailing list