]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ath9k_hw: fix PA predistortion training power selection
authorFelix Fietkau <nbd@openwrt.org>
Mon, 13 Dec 2010 07:40:54 +0000 (08:40 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:33 +0000 (15:23 -0500)
commit1bf38661822049931a0ab8d2b43153b26cc919f6
treebea1bec029d0c8fa879dfef06a40798408c8f6dd
parent1782352d4908c79d195b43e0c1b6b109e0d93d05
ath9k_hw: fix PA predistortion training power selection

The EEPROM contains scale factors for the tx power, which define
the range of allowable difference between target power and training
power. If the difference is too big, PA predistortion cannot be used.
For 2.4 GHz there is only one scale factor, for 5 GHz there are
three, depending on the specific frequency range.

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