Author: adrian
Date: Mon Nov 21 22:57:28 2011
New Revision: 227806
URL: http://svn.freebsd.org/changeset/base/227806

Log:
  Use the correct lock when calling msleep().
  
  This fixes panics that users have been seeing when operating in station mode,
  where the interface undergoes a lot more resets then in hostap mode (ie whilst
  doing channel scanning.)
  
  Reported by:  arundel, wbl...@wonkity.com
  Sponsored by: Hobnob, Inc.

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

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c   Mon Nov 21 22:19:12 2011        (r227805)
+++ head/sys/dev/ath/if_ath.c   Mon Nov 21 22:57:28 2011        (r227806)
@@ -1878,7 +1878,7 @@ ath_txrx_stop(struct ath_softc *sc)
            sc->sc_txstart_cnt || sc->sc_intr_cnt) {
                if (i <= 0)
                        break;
-               msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1);
+               msleep(sc, &sc->sc_pcu_mtx, 0, "ath_txrx_stop", 1);
                i--;
        }
        ATH_PCU_UNLOCK(sc);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to