ath9k_hw: fix a noise floor calibration related race condition
authorFelix Fietkau <nbd@openwrt.org>
Fri, 30 Jul 2010 22:12:01 +0000 (00:12 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Aug 2010 19:27:37 +0000 (15:27 -0400)
commit4254bc1c4d7b53ac10e558dfe015725fdd693da4
tree51c95b3f0f24ff8e1fabf698524c9ddd9f069879
parent20bd2a0952d01ba82a99b3f22d46e3832c255529
ath9k_hw: fix a noise floor calibration related race condition

On AR5008-AR9002, other forms of calibration must not be started while
the noise floor calibration is running, as this can create invalid
readings which were sometimes not even recoverable by any further
calibration attempts.

This patch also ensures that the result of noise floor measurements
are processed faster and also allows the result of the initial
calibration on reset to make it into the NF history buffer

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