ath10k: Fix bug in max. VHT A-MPDU size
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 8 Oct 2013 02:51:57 +0000 (19:51 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Oct 2013 19:10:22 +0000 (22:10 +0300)
commita24b88b56074424a413acc2d2a517fb82f5e7c2f
tree29426257813d5d99ecac3c25179c988b5bdec782
parent0d1a28f241e917d199ad72644edd0d6bb6726577
ath10k: Fix bug in max. VHT A-MPDU size

For VHT peers, the maximum A-MPDU size has to be calculated
from the VHT capabilities element and not the HT-cap. The formula
is the same, but a higher value is used in VHT, allowing larger
aggregates to be transmitted.

The patch contains a workaround for some Netgear/Linksys APs that
report Rx A-MPDU factor incorrectly.

Tested-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c