ath9k: fix the return value of ath_stoprecv
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Apr 2011 22:41:43 +0000 (00:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Apr 2011 19:22:52 +0000 (15:22 -0400)
commit2232d31bf18ba02f5cd632bbfc3466aeca394c75
tree13a46384ab1b73d548604760e4b849c4202bcb74
parent7caa2316bf0434f1150f58cb576542987a0466d7
ath9k: fix the return value of ath_stoprecv

The patch 'ath9k_hw: fix stopping rx DMA during resets' added code to detect
a condition where rx DMA was stopped, but the MAC failed to enter the idle
state. This condition requires a hardware reset, however the return value
of ath_stoprecv was 'true' in that case, which allowed it to skip the reset
when issuing a fast channel change.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Paul Stewart <pstew@google.com>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c