]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: add additional checks for the baseband hang detection
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Feb 2011 19:09:25 +0000 (20:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Feb 2011 21:29:52 +0000 (16:29 -0500)
commit52ba65e9e0a813f125a67eb917bbbbc2a562a8c0
tree345dc16e6c995b2e49da4a66f4bade6a345d4a21
parent59ae0d2cfcf5ffb2de4074ae6a855ab08a1bc9dc
ath9k: add additional checks for the baseband hang detection

Since even with the latest changes the false positive issue of the baseband
hang check is not fully solved yet, additional checks are needed.
If the baseband hang occurs, the rx_clear signal will be stuck to high, so
we can use the cycle counters to confirm it.
With this patch, a hardware reset is only triggered if the baseband hang
check returned true three times in a row, with a beacon interval between
each check and if the busy time was also 99% or more during the check
intervals.

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