]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath9k_hw: prevent a fast channel change after a rx DMA stuck issue
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:42 +0000 (12:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:17 +0000 (11:09 -0700)
commit5776fe6ec7296d5f89b8979d6f6958e1be8fd706
tree7bc418e4b2bd57ce2cc131c158d953dbbe4ba26f
parent94230128c1fb1eb2fa607875804bc1d5d111c98c
ath9k_hw: prevent a fast channel change after a rx DMA stuck issue

commit 9cc2f3e881dcda5466c55ffe8dd0a9d1433469cb upstream.

If the receive path gets stuck, a full hardware reset is necessary to
recover from it. If this happens during a scan, the whole scan might fail,
as each channel change bypasses the full reset sequence.
Fix this by resetting the fast channel change flag if stopping the
receive path fails.

This will reduce the number of error messages that look like this:
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x40000020

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/hw.c