ath9k: make PA linearization optional, disabled by default and fix checks
authorFelix Fietkau <nbd@openwrt.org>
Sat, 8 Sep 2012 13:24:17 +0000 (15:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Sep 2012 18:42:43 +0000 (14:42 -0400)
commit74673db99ca3c09d34ea479f684522ceedb65eb9
tree696ecb42447fc358608cdedaca4317496c2061c5
parent8a0961482698290713d14d7755d9280397804487
ath9k: make PA linearization optional, disabled by default and fix checks

Some checks for PA linearization support checked ATH9K_HW_CAP_PAPRD and some
used the EEPROM ops, leading to issues in tx power handling, since those
two can be out of sync.

Disable the feature by default, since it has been reported that it can
cause damage to the rx path under some circumstances. It can now be enabled
for testing via debugfs.

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/debug.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/link.c