]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix queue depth accounting in ath_tx_txqaddbuf
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Jun 2013 13:11:31 +0000 (15:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Jun 2013 18:44:23 +0000 (14:44 -0400)
commitfb728243f58d70df3d26868eb2721263b5e54057
treee02de04745dc593bae2e3b5d988281c54c7c0e30
parent563e1e4b9414c3bf47a2951090456626f9ca201d
ath9k: fix queue depth accounting in ath_tx_txqaddbuf

ath_tx_txqaddbuf assumes that all the linked buffers in the queue passed
to it are part of the same A-MPDU or MPDU. The CAB queue rework violates
this assumption, which can cause the internal queue depth to go
negative.
Fix this by increasing the counter for all slots of [bf, bf->bf_lastbf]

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c