ath9k: shorten the calibration interval during strong interference
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Aug 2010 13:53:15 +0000 (15:53 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Aug 2010 19:26:39 +0000 (15:26 -0400)
commit6044474ed86484b899d46e040ade3872e83fc9f7
tree582272aedaacaeaf57d5bf8e3e517cf5f2e07731
parent70cf15335eb35d562a4ec6d8860611c87f775cf2
ath9k: shorten the calibration interval during strong interference

When the noise floor limits are being bypassed because of strong
interference, sensitivity is also reduced.
In order to recover from this as quickly as possible, trigger a
long periodic calibration every second instead of every 30 seconds,
until the NF median is within limits again. This is especially important
if the interference lasts for a while, since it takes multiple clean
NF calibrations to bring the median back to normal.

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