|
@@ -182,7 +182,7 @@ static void ath_restart_work(struct ath_softc *sc)
|
|
|
ath_start_ani(sc);
|
|
|
}
|
|
|
|
|
|
-static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush)
|
|
|
+static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx)
|
|
|
{
|
|
|
struct ath_hw *ah = sc->sc_ah;
|
|
|
bool ret = true;
|
|
@@ -204,14 +204,6 @@ static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush)
|
|
|
if (!ath_drain_all_txq(sc, retry_tx))
|
|
|
ret = false;
|
|
|
|
|
|
- if (!flush) {
|
|
|
- if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA)
|
|
|
- ath_rx_tasklet(sc, 1, true);
|
|
|
- ath_rx_tasklet(sc, 1, false);
|
|
|
- } else {
|
|
|
- ath_flushrecv(sc);
|
|
|
- }
|
|
|
-
|
|
|
tasklet_enable(&sc->intr_tq);
|
|
|
|
|
|
return ret;
|
|
@@ -266,7 +258,6 @@ static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan,
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath9k_hw_cal_data *caldata = NULL;
|
|
|
bool fastcc = true;
|
|
|
- bool flush = false;
|
|
|
int r;
|
|
|
|
|
|
__ath_cancel_work(sc);
|
|
@@ -280,11 +271,10 @@ static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan,
|
|
|
|
|
|
if (!hchan) {
|
|
|
fastcc = false;
|
|
|
- flush = true;
|
|
|
hchan = ah->curchan;
|
|
|
}
|
|
|
|
|
|
- if (!ath_prepare_reset(sc, retry_tx, flush))
|
|
|
+ if (!ath_prepare_reset(sc, retry_tx))
|
|
|
fastcc = false;
|
|
|
|
|
|
ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n",
|
|
@@ -808,7 +798,7 @@ static void ath9k_stop(struct ieee80211_hw *hw)
|
|
|
ath9k_hw_cfg_gpio_input(ah, ah->led_pin);
|
|
|
}
|
|
|
|
|
|
- ath_prepare_reset(sc, false, true);
|
|
|
+ ath_prepare_reset(sc, false);
|
|
|
|
|
|
if (sc->rx.frag) {
|
|
|
dev_kfree_skb_any(sc->rx.frag);
|