ath9k_hw: set ANI cycpwr_thr1 as absolute values instead of relative
authorFelix Fietkau <nbd@openwrt.org>
Tue, 11 Mar 2014 15:10:33 +0000 (16:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Mar 2014 18:49:15 +0000 (14:49 -0400)
commit28327fd096248ad1153e455ca8ffa205927b4b89
treeae57ae8a0ec7266af482494d0479aaa03d62b670
parentafdc05f09df633546da70c92f5d1557687331789
ath9k_hw: set ANI cycpwr_thr1 as absolute values instead of relative

The table was copied from the ANI implementation of AR9300. It assumes
that the INI values contain a baseline value that is usable as reference
from which to increase/decrease based on the noise immunity value.

On older chips, the differences are bigger and especially AR5008/AR9001
are configured to much more sensitive values than what is useful.

Improve ANI behavior by reverting to the absolute values used in the
previous implementation (expressed as a simple formula instead of the
old table).

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