diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-11-10 21:18:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-16 16:37:07 -0500 |
commit | 1d666d8e05edf5891a7a4bd84a25f493f01dc71a (patch) | |
tree | a3b6af3782a79dde2fc069f272651ccae9272903 /drivers | |
parent | 7afbb2f07028183f50ae4f7ce4dab1f32b36cf48 (diff) |
ath9k: remove the unnecessary private xretry tx flag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 3 |
3 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 85c8e9310cae..c052bd6ddbcd 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -1370,7 +1370,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, | |||
1370 | is_underrun = 1; | 1370 | is_underrun = 1; |
1371 | } | 1371 | } |
1372 | 1372 | ||
1373 | if (tx_info->pad[0] & ATH_TX_INFO_XRETRY) | 1373 | if (!(tx_info->flags & IEEE80211_TX_STAT_ACK)) |
1374 | tx_status = 1; | 1374 | tx_status = 1; |
1375 | 1375 | ||
1376 | ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status, | 1376 | ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status, |
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h index 2f46a2266ba1..a1dce437b6af 100644 --- a/drivers/net/wireless/ath/ath9k/rc.h +++ b/drivers/net/wireless/ath/ath9k/rc.h | |||
@@ -227,7 +227,6 @@ struct ath_rate_priv { | |||
227 | 227 | ||
228 | #define ATH_TX_INFO_FRAME_TYPE_INTERNAL (1 << 0) | 228 | #define ATH_TX_INFO_FRAME_TYPE_INTERNAL (1 << 0) |
229 | #define ATH_TX_INFO_FRAME_TYPE_PAUSE (1 << 1) | 229 | #define ATH_TX_INFO_FRAME_TYPE_PAUSE (1 << 1) |
230 | #define ATH_TX_INFO_XRETRY (1 << 3) | ||
231 | #define ATH_TX_INFO_UNDERRUN (1 << 4) | 230 | #define ATH_TX_INFO_UNDERRUN (1 << 4) |
232 | 231 | ||
233 | enum ath9k_internal_frame_type { | 232 | enum ath9k_internal_frame_type { |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 6380bbd82d49..eaaeb937fa17 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1993,9 +1993,6 @@ static void ath_tx_rc_status(struct ath_buf *bf, struct ath_tx_status *ts, | |||
1993 | if (ts->ts_flags & | 1993 | if (ts->ts_flags & |
1994 | (ATH9K_TX_DATA_UNDERRUN | ATH9K_TX_DELIM_UNDERRUN)) | 1994 | (ATH9K_TX_DATA_UNDERRUN | ATH9K_TX_DELIM_UNDERRUN)) |
1995 | tx_info->pad[0] |= ATH_TX_INFO_UNDERRUN; | 1995 | tx_info->pad[0] |= ATH_TX_INFO_UNDERRUN; |
1996 | if ((ts->ts_status & ATH9K_TXERR_XRETRY) || | ||
1997 | (ts->ts_status & ATH9K_TXERR_FIFO)) | ||
1998 | tx_info->pad[0] |= ATH_TX_INFO_XRETRY; | ||
1999 | } | 1996 | } |
2000 | } | 1997 | } |
2001 | 1998 | ||