]> git.baikalelectronics.ru Git - kernel.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)
commit0d6bb758b012f32fafd973e5eb59b642e4187669
tree8afd490ee1b69dc1399500971428c92db680c42f
parent7c46070df06d8aa1b803082963f521a479e2afef
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