]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix tx power settings for AR9287
authorGabor Juhos <juhosg@openwrt.org>
Sun, 15 Apr 2012 18:38:06 +0000 (20:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 18:56:11 +0000 (14:56 -0400)
commitcfbf6644a7ef95b0ab7ed9cb89d17e3c794841ee
treef370e03ba3492aee69f52eacf6c31fd81f1d36d7
parentf5a70b076fb61b052a7f33cdac4cd36795f4a86b
ath9k: fix tx power settings for AR9287

The 'ath9k_hw_update_regulatory_maxpower'
helper function has been introduced by
commit 063ad47b55786140514f3e9544b458c1f304bced
(ath9k_hw: Cleanup TX power calculation for AR9287).

Updating of the max_power_level value has been moved
into the helper function in that change, however the
removed code from 'ath9k_hw_ar9287_set_txpower' has
not been replaced with a call of the new helper
function.

Due to that missing call, retrieving tx power for 2x2
and 3x3 chainmask is not handled properly. During the
calculation of the tx power for 2x2 and 3x3 chainmasks
the values are reduced. Those reductions must be
compensated during retrieving.

Fix this by adding the missing call of the helper
function.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom_9287.c