]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: add an extra boolean parameter to ath9k_hw_apply_txpower
authorGabor Juhos <juhosg@openwrt.org>
Sun, 15 Apr 2012 18:38:05 +0000 (20:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 18:56:11 +0000 (14:56 -0400)
commitf5a70b076fb61b052a7f33cdac4cd36795f4a86b
tree2a9560c250ef52d0908251321cd8393e68a6461b
parent0d18c56c5830f8d22e9b084d6be8d2d4c9fc6968
ath9k: add an extra boolean parameter to ath9k_hw_apply_txpower

In order to unifying regulatory limit handling
commit d6c78bcd3b88db1522f986467321cb3c46b29da9
(ath9k_hw: clean up tx power handling) introduced
a new helper function 'ath9k_hw_apply_txpower',
and the direct calls of 'ah->eep_ops->set_txpower'
has been replaced by a call of the helper function.

This caused a change in the behaviour of the
'ath9k_hw_set_txpowerlimit' function. The purpose
of that function is to calculate and store the
rate txpower table and the regulatory limit without
touching the hardware registers. Before the commit,
the 'test' parameter of the function was passed to
the 'ah->eep_ops->set_txpower'. Now the calling of
the 'set_txpower' function happens indirectly through
'ath9k_hw_apply_txpower', so the 'test' argument of
the 'set_txpower' is always 'false'.

This patch restores the original behaviour of
'ath9k_hw_set_txpowerlimit' by adding a new
argument to 'ath9k_hw_apply_txpower.'

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