From: Felix Fietkau Date: Wed, 16 Jul 2014 18:26:05 +0000 (+0200) Subject: ath9k: fix pending tx frames accounting X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d954cd770051cde27a9da8f2627acd5bc709ffbb;p=pandora-kernel.git ath9k: fix pending tx frames accounting Packets originally buffered for the regular hardware tx queues can end up being transmitted through the U-APSD queue (via PS-Poll or U-APSD). When packets are dropped due to retransmit failures, the pending frames counter is not always updated properly. Fix this by keeping track of the queue that a frame was accounted for in the ath_frame_info struct, and using that on completion to decide whether the counter should be updated. This fixes some spurious transmit queue hangs. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed