87ef682
--- a/drivers/net/wireless/ath/ath9k/mac.c
87ef682
+++ b/drivers/net/wireless/ath/ath9k/mac.c
87ef682
@@ -689,7 +689,7 @@ bool ath9k_hw_stopdmarecv(struct ath_hw 
87ef682
 {
87ef682
 #define AH_RX_STOP_DMA_TIMEOUT 10000   /* usec */
87ef682
 	struct ath_common *common = ath9k_hw_common(ah);
87ef682
-	u32 mac_status, last_mac_status = 0;
87ef682
+	u32 mac_status = 0, last_mac_status = 0;
87ef682
 	int i;
87ef682
 
87ef682
 	/* Enable access to the DMA observation bus */
87ef682
@@ -719,6 +719,16 @@ bool ath9k_hw_stopdmarecv(struct ath_hw 
87ef682
 	}
87ef682
 
87ef682
 	if (i == 0) {
87ef682
+		if (!AR_SREV_9300_20_OR_LATER(ah) &&
87ef682
+		    (mac_status & 0x700) == 0) {
87ef682
+			/*
87ef682
+			 * DMA is idle but the MAC is still stuck
87ef682
+			 * processing events
87ef682
+			 */
87ef682
+			*reset = true;
87ef682
+			return true;
87ef682
+		}
87ef682
+
87ef682
 		ath_err(common,
87ef682
 			"DMA failed to stop in %d ms AR_CR=0x%08x AR_DIAG_SW=0x%08x DMADBG_7=0x%08x\n",
87ef682
 			AH_RX_STOP_DMA_TIMEOUT / 1000,