]> 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)
commit1ee43c9320afe2609714df91927ab571ab3272ea
tree9bf0f2997f7d725a18828eca685faeaa92465bc9
parent2a945e3b964cb73d3eb4d5bb4a3bf9a123372248
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