]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42f6adbaab8501f644633fb5ddbd54c2e8269320
tree9bf0f2997f7d725a18828eca685faeaa92465bc9
parentabe8f928b78f8357f727f1a9db5fe9cd79e42c6c
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