aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-08-11 07:01:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:03 -0400
commit580f0b8a6dc1cb4d32c351a507d1c1d319bdc1eb (patch)
tree53704fd36f81c691f20aac3fc767cd9960894b75 /drivers/net/wireless
parenta8fff50e4d6aad520b261b3c32e2c67a7dfb7228 (diff)
ath9k: Fix TX status reporting
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath9k/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index f904cf67dba8..4b61666261e3 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -1085,8 +1085,16 @@ void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
1085 tx_info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK; 1085 tx_info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK;
1086 tx_status->flags &= ~ATH_TX_BAR; 1086 tx_status->flags &= ~ATH_TX_BAR;
1087 } 1087 }
1088 if (tx_status->flags) 1088
1089 tx_info->status.excessive_retries = 1; 1089 if (tx_status->flags & (ATH_TX_ERROR | ATH_TX_XRETRY)) {
1090 if (!(tx_info->flags & IEEE80211_TX_CTL_NO_ACK)) {
1091 /* Frame was not ACKed, but an ACK was expected */
1092 tx_info->status.excessive_retries = 1;
1093 }
1094 } else {
1095 /* Frame was ACKed */
1096 tx_info->flags |= IEEE80211_TX_STAT_ACK;
1097 }
1090 1098
1091 tx_info->status.retry_count = tx_status->retries; 1099 tx_info->status.retry_count = tx_status->retries;
1092 1100