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:
parent
26ddc9835a
commit
a2d8240de5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user