diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index f474daa645de..462bc3f35cf1 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -1864,12 +1864,10 @@ ath_txrx_stop(struct ath_softc *sc) int i = MAX_TXRX_ITERATIONS; ATH_UNLOCK_ASSERT(sc); - /* Stop any new TX/RX from occuring */ taskqueue_block(sc->sc_tq); ATH_PCU_LOCK(sc); - /* * Sleep until all the pending operations have completed. * @@ -1878,7 +1876,7 @@ ath_txrx_stop(struct ath_softc *sc) */ while (sc->sc_rxproc_cnt || sc->sc_txproc_cnt || sc->sc_txstart_cnt || sc->sc_intr_cnt) { - if (i <= 0) + if (i <= 0) break; msleep(sc, &sc->sc_mtx, 0, "ath_txrx_stop", 1); i--;