1
linux/drivers/net/wireless/ath
Felix Fietkau 78c4653a22 ath9k: fix retry count for A-MPDU rate control status reports
The 'bf_retries' field of the ath_buf structure was used for both
software retries (AMPDU subframes) and hardware retries (legacy
frames). This led to a wrong retry count being reported for the A-MPDU
rate control stats.
This patch changes the code to no longer use bf_retries for reporting
retry counts, but instead always using the real on-chip retry count
from the ath_tx_status.
Additionally, if the first subframe of an A-MPDU was not acked, the tx
status report is submitted along with the first acked subframe, which
may not contain the correct rates in the tx info.
This is easily corrected by saving the tx rate info before looping over
subframes, and then copying it back once the A-MPDU status report is
submitted.
In my tests this change improves throughput visibly.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Björn Smedman <bjorn.smedman@venatech.se>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-06-28 15:16:19 -04:00
..
ar9170 ar9170usb: fix read from freed driver context 2010-05-26 14:49:48 -04:00
ath5k ath5k: fix antenna div gc for <= AR5K_SREV_PHY_2413 2010-06-28 15:16:19 -04:00
ath9k ath9k: fix retry count for A-MPDU rate control status reports 2010-06-28 15:16:19 -04:00
ath.h
debug.c
debug.h
hw.c
Kconfig
main.c
Makefile
reg.h
regd_common.h
regd.c
regd.h