提交 0a62acb1 编写于 作者: F Felix Fietkau 提交者: 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: NFelix Fietkau <nbd@openwrt.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册