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);
 }
 
 /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to