]> git.baikalelectronics.ru Git - kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:38 +0000 (16:05 -0400)
commit2794044eebb5defa1f8ea42e6d6454cdda8b5478
tree0e896791d624aec7cd519bda0540911282548601
parent50491c66fff00fceaf1ae3ab13693c225d46b06f
ath9k_hw: prevent a fast channel change after a rx DMA stuck issue

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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c