ath9k: only drop packets in drv_flush when asked to
authorFelix Fietkau <nbd@openwrt.org>
Wed, 16 Nov 2011 12:08:42 +0000 (13:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Dec 2011 20:19:35 +0000 (15:19 -0500)
commit9df0d6a20a4e6d15684cc8f2e3f0155be0801592
tree9bf0f2997f7d725a18828eca685faeaa92465bc9
parentc0c1174144dd619456be5930d733028a055ef425
ath9k: only drop packets in drv_flush when asked to

Recently more places in mac80211 call drv_flush to ensure proper order
for state changes wrt. powersave, channel changes, etc. On some systems
such calls lead to spurious logspam about failing to stop tx dma, as well
as hardware resets that go along with that.
Instead of dropping packets in a place where it's completely unnecessary,
only do it when drop == true.

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