]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath9k_hw: Fix signal strength / channel noise reporting
authorFelix Fietkau <nbd@openwrt.org>
Mon, 10 Dec 2012 13:03:17 +0000 (14:03 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Jan 2013 03:33:33 +0000 (03:33 +0000)
commitf271af61a44cfe3d8c1b74ed4a7b9d79821026eb
tree9ce0432023bd0ce7ad05b03bea8efae07d17b8aa
parent5586cbb7545108625de4b7f3ee5f5b4981f7ddf9
ath9k_hw: Fix signal strength / channel noise reporting

commit b7c0c238898d200e80487516e2b67aba2a522cc0 upstream.

While AR_PHY_CCA_NOM_VAL_* does contain the expected internal noise floor
for a chip measured in clean air, it refers to the lowest expected reading.

Depending on the frequency, this measurement can vary by about 6db, thus
causing a higher reported channel noise and signal strength.

Factor in the 6db offset when converting internal noisefloor to channel noise.

This patch makes the reported values more accurate for all chips without
affecting NF calibration behavior.

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