]> git.karo-electronics.de Git - linux-beck.git/commit
ath9k: prevent calibration during off-channel activity
authorFelix Fietkau <nbd@openwrt.org>
Fri, 30 Jul 2010 22:11:59 +0000 (00:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Aug 2010 19:27:37 +0000 (15:27 -0400)
commit5ee0865615f65f84e6ee9174771a6716c29e08e1
tree8afd490ee1b69dc1399500971428c92db680c42f
parentb2ccc507b70be2815a25e3c5dc23c636e128222c
ath9k: prevent calibration during off-channel activity

Previously the software scan callback was used to indicate to the hardware,
when it was safe to calibrate. This didn't really work properly, because it
depends on a specific order of software scan callbacks vs. channel changes.
Also, software scans are not the only thing that triggers off-channel
activity, so it's better to use the newly added indication from mac80211 for
this and not use the software scan callback for anything calibration related.

This fixes at least some of the invalid noise floor readings that I've seen
in AP mode on AR9160

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