]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: remove the unnecessary private xretry tx flag
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Nov 2010 02:18:34 +0000 (03:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Nov 2010 21:37:07 +0000 (16:37 -0500)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c
drivers/net/wireless/ath/ath9k/rc.h
drivers/net/wireless/ath/ath9k/xmit.c

index 85c8e9310cae3461fc12ad99d0b73d48db452768..c052bd6ddbcd1840360dba1b61a36f3c7ca7ebc5 100644 (file)
@@ -1370,7 +1370,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
                is_underrun = 1;
        }
 
-       if (tx_info->pad[0] & ATH_TX_INFO_XRETRY)
+       if (!(tx_info->flags & IEEE80211_TX_STAT_ACK))
                tx_status = 1;
 
        ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status,
index 2f46a2266ba1d2e0efeb32caef1a50eb0c13ef80..a1dce437b6af2ea6bf8d59766094ccac5f992e30 100644 (file)
@@ -227,7 +227,6 @@ struct ath_rate_priv {
 
 #define ATH_TX_INFO_FRAME_TYPE_INTERNAL        (1 << 0)
 #define ATH_TX_INFO_FRAME_TYPE_PAUSE   (1 << 1)
-#define ATH_TX_INFO_XRETRY             (1 << 3)
 #define ATH_TX_INFO_UNDERRUN           (1 << 4)
 
 enum ath9k_internal_frame_type {
index 6380bbd82d49b7153d2c2fc48b607c874c312f40..eaaeb937fa17566979a7e1c0b2003ecc126e2297 100644 (file)
@@ -1993,9 +1993,6 @@ static void ath_tx_rc_status(struct ath_buf *bf, struct ath_tx_status *ts,
                        if (ts->ts_flags &
                            (ATH9K_TX_DATA_UNDERRUN | ATH9K_TX_DELIM_UNDERRUN))
                                tx_info->pad[0] |= ATH_TX_INFO_UNDERRUN;
-                       if ((ts->ts_status & ATH9K_TXERR_XRETRY) ||
-                           (ts->ts_status & ATH9K_TXERR_FIFO))
-                               tx_info->pad[0] |= ATH_TX_INFO_XRETRY;
                }
        }