]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: reduce the likelihood of baseband hang check false positives
authorFelix Fietkau <nbd@openwrt.org>
Tue, 11 Jan 2011 00:05:50 +0000 (17:05 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jan 2011 16:36:08 +0000 (11:36 -0500)
commit431be2f768c1c27151c799a5889d498a9655710b
tree63513c6a1a0e7722acb3997509c1dbd1b9db46bf
parent8da1fd213549590a3a77534c6af0b898d21fca4a
ath9k: reduce the likelihood of baseband hang check false positives

Since baseband hangs are rare, but the hang check function has a high
false positive rate in some situations, we need to add more reliable
indicators.

In AP mode we can use blocked beacon transmissions as an indicator,
they should be rare enough.

In station mode, we can skip the hang check entirely, since a true
hang will trigger beacon loss detection, and mac80211 will rescan,
which leads to a hw reset that will bring the hardware back to life.

To make this more reliable, we need to skip fast channel changes
if the hardware appears to be stuck.

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