ath9k: avoid passing buffers to the hardware during flush
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 May 2014 17:21:34 +0000 (19:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 May 2014 17:08:10 +0000 (13:08 -0400)
commit7dd74f5fabe5681ba584acc402a6313126cc53c0
tree9a1deef1cd041c3a12fdb61e8a90e0ba7e7055c1
parent3f3c09f38b3a1db37760cf1f5767ab1ad8015712
ath9k: avoid passing buffers to the hardware during flush

The commit "ath9k: fix possible hang on flush" changed the receive code
to always link rx descriptors of processed frames, even when flushing.
In some cases, this leads to flushed rx buffers being passed to the
hardware while rx is already stopped.

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