Commit 0a62acb1 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k: stop rx after tx

Completing frame transmission can fail if the rx engine is stopped
prematurely, as the hw might be waiting for an ACK from the other side.
Shutting down tx before rx might make the DMA shutdown more reliable.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent eee569e4
......@@ -196,10 +196,10 @@ static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush)
ath9k_debug_samp_bb_mac(sc);
ath9k_hw_disable_interrupts(ah);
if (!ath_stoprecv(sc))
if (!ath_drain_all_txq(sc, retry_tx))
ret = false;
if (!ath_drain_all_txq(sc, retry_tx))
if (!ath_stoprecv(sc))
ret = false;
if (!flush) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment