ath9k_hw: fix invalid extension channel noisefloor readings in HT20
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jul 2010 02:07:48 +0000 (04:07 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Jul 2010 19:32:42 +0000 (15:32 -0400)
commit866b7780fce95989dfc85f3e372635f5147e0d90
tree795a2705b44be3f60f3d4a0ff46fddbee0337197
parent4cee78614cfa046a26c4fbf313d5bbacb3ad8efc
ath9k_hw: fix invalid extension channel noisefloor readings in HT20

When the hardware is configured in HT20 mode, noise floor readings for
the extension channel often return invalid values, which keep the
values in the NF history buffer at the hardware-specific maximum limit.
Fix this by discarding the extension channel values when in HT20 mode.

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