diff options
author | Björn Smedman <bjorn.smedman@venatech.se> | 2010-10-10 20:44:39 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-11 19:04:24 (GMT) |
commit | ebd022873aa61937603d2c4dfea19ce63ea1a3c8 (patch) | |
tree | 2801c6da6f7481cb2ebae440282780c9e5b611df /include/linux/nfsd | |
parent | 15d46f38df87f89242e470f5797120fa384c1fc3 (diff) | |
download | linux-fsl-qoriq-ebd022873aa61937603d2c4dfea19ce63ea1a3c8.tar.xz |
ath9k: A-MPDU rate control info fix
This patch fixes the following problems with the rate control feedback
generated by ath9k for A-MPDU frames:
1. Rate control feedback is carried on the first frame of an aggregate
that is either ACKed, or has execeeded the software retry count and is
considered failed. However, ath9k would incorrectly assume the aggregate
had the length 1 if one of these conditions did not apply to the first
frame of the aggregate, but instead a later frame. This fix therefor
copies the bf_nframes field of the buffer in the same manner as the rates
field of the tx status.
2. Sometimes the ampdu_len and ampdu_ack_len fields of the tx status was
left uninitialized eventhough the IEEE80211_TX_STAT_AMPDU flag was set.
This is now avoid by setting flag and fields in the same place.
3. Even if a frame has been selected for aggregation by mac80211 and
marked with the IEEE80211_TX_CTL_AMPDU flag it can sometimes happen that
ath9k transmits the frame without aggregation. In these cases the
ampdu_ack_len field could be incorrectly computed because the nbad
parameter to ath_tx_rc_status was incorrect.
Cc: <stable@kernel.org>
Signed-off-by: Björn Smedman <bjorn.smedman@venatech.se>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nfsd')
0 files changed, 0 insertions, 0 deletions