]> git.karo-electronics.de Git - linux-beck.git/commit
ath9k: fix aggregate size limit based on queue TXOP limit
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jul 2012 17:53:36 +0000 (19:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jul 2012 19:11:35 +0000 (15:11 -0400)
commitaa5955c36fc3dfa6d18b47fc206987c561d903d8
tree1bab30daa674f364d3adb929f131c903f19c9da8
parent7702e788e77c175f5ddc8f792468b8af036a8146
ath9k: fix aggregate size limit based on queue TXOP limit

If the aggregate size exceeds the TXOP limit, it leads to lots of unnecessary
hardware and software retries.

The previous 4ms frame limit table was completely undocumented, the commit
that updated it only vaguely referenced and equation from the standard,
but I've been unable to replicate its results.

Fix this by using a formula based on the code in ath_pkt_duration, which is
more likely to be correct for this case.

Reported-by: Dave Täht <dave.taht@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/xmit.c