ath9k: fix the return value of ath_stoprecv
commitbf4b1d070aeb3669d4b4e95c59c404d0e055c41c
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Apr 2011 22:41:43 +0000 (15 00:41 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:06:45 +0000 (9 15:06 -0700)
treea6707345458674f98781ea5fba3d0dff00d7831a
parent15f0758f185241ad9c358a5bf60ff0a21eccc218
ath9k: fix the return value of ath_stoprecv

commit 2232d31bf18ba02f5cd632bbfc3466aeca394c75 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/recv.c