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, wblock@wonkity.com
Sponsored by:	Hobnob, Inc.
This commit is contained in:
Adrian Chadd 2011-11-21 22:57:28 +00:00
parent 26ddc9835a
commit a2d8240de5

View File

@ -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);