]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Update TX trigger level on a FIFO underrun.
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 18 Nov 2008 03:40:22 +0000 (09:10 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 26 Nov 2008 14:47:34 +0000 (09:47 -0500)
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/mac.c

index c344a81e738ab5531cc33123e93a885afca232e5..36955e0b1849e0133d1f54c81c6ed2cdae5a2c62 100644 (file)
@@ -293,8 +293,10 @@ int ath9k_hw_txprocdesc(struct ath_hal *ah, struct ath_desc *ds)
                ds->ds_txstat.ts_status |= ATH9K_TXERR_XRETRY;
        if (ads->ds_txstatus1 & AR_Filtered)
                ds->ds_txstat.ts_status |= ATH9K_TXERR_FILT;
-       if (ads->ds_txstatus1 & AR_FIFOUnderrun)
+       if (ads->ds_txstatus1 & AR_FIFOUnderrun) {
                ds->ds_txstat.ts_status |= ATH9K_TXERR_FIFO;
+               ath9k_hw_updatetxtriglevel(ah, true);
+       }
        if (ads->ds_txstatus9 & AR_TxOpExceeded)
                ds->ds_txstat.ts_status |= ATH9K_TXERR_XTXOP;
        if (ads->ds_txstatus1 & AR_TxTimerExpired)