diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-12-14 22:08:04 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-15 14:46:36 -0500 |
commit | 156369faa3f49c4fa37cf1f5254b1f3903b23dfd (patch) | |
tree | d0a50ae000e137a6b65c682ac1e67a3bbcd631e7 /drivers/net/wireless/ath/ath9k/debug.c | |
parent | da647626c7aa854755d32dc8e33d3c58314d2fdb (diff) | |
download | blackbird-op-linux-156369faa3f49c4fa37cf1f5254b1f3903b23dfd.tar.gz blackbird-op-linux-156369faa3f49c4fa37cf1f5254b1f3903b23dfd.zip |
ath9k: reduce the number of unnecessary BAR tx packets
When processing A-MPDU tx status, only send a BAR for the failed packet
with the highest sequence number.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 6fb719d85b37..5cb8cceffd0b 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -856,7 +856,7 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf, sc->debug.stats.txstats[qnum].tx_bytes_all += bf->bf_mpdu->len; if (bf_isampdu(bf)) { - if (flags & ATH_TX_BAR) + if (flags & ATH_TX_ERROR) TX_STAT_INC(qnum, a_xretries); else TX_STAT_INC(qnum, a_completed); |