mac80211/ath9k: improve pending patches based on review feedback
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 571-ath9k_fix_dma_stop.patch
index 072e657e2e4491058f680074fe0e9f48fa14f0a4..9f7cfa82ec0b50374d437c51716887b9f6a3a770 100644 (file)
@@ -25,7 +25,7 @@
        if (npend)
 --- a/drivers/net/wireless/ath/ath9k/mac.c
 +++ b/drivers/net/wireless/ath/ath9k/mac.c
-@@ -143,6 +143,33 @@ bool ath9k_hw_updatetxtriglevel(struct a
+@@ -143,6 +143,34 @@ bool ath9k_hw_updatetxtriglevel(struct a
  }
  EXPORT_SYMBOL(ath9k_hw_updatetxtriglevel);
  
 +      REG_SET_BIT(ah, AR_D_GBL_IFS_MISC, AR_D_GBL_IFS_MISC_IGNORE_BACKOFF);
 +
 +      for (q = 0; q < AR_NUM_QCU; q++) {
-+              for (i = 1000; i > 0; i--) {
++              for (i = 0; i < 1000; i++) {
++                      if (i)
++                              udelay(5);
++
 +                      if (!ath9k_hw_numtxpending(ah, q))
 +                              break;
-+
-+                      udelay(5);
 +              }
 +      }
 +