ath9k_hw: Configure power control only for the supported chains
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
dd040f76ce
commit
5f139eba41
1 changed files with 16 additions and 12 deletions
|
@ -4260,23 +4260,27 @@ static int ar9003_hw_power_control_override(struct ath_hw *ah,
|
||||||
REG_RMW(ah, AR_PHY_TPC_11_B0,
|
REG_RMW(ah, AR_PHY_TPC_11_B0,
|
||||||
(correction[0] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
(correction[0] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
||||||
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
||||||
REG_RMW(ah, AR_PHY_TPC_11_B1,
|
if (ah->caps.tx_chainmask & BIT(1))
|
||||||
(correction[1] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
REG_RMW(ah, AR_PHY_TPC_11_B1,
|
||||||
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
(correction[1] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
||||||
REG_RMW(ah, AR_PHY_TPC_11_B2,
|
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
||||||
(correction[2] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
if (ah->caps.tx_chainmask & BIT(2))
|
||||||
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
REG_RMW(ah, AR_PHY_TPC_11_B2,
|
||||||
|
(correction[2] << AR_PHY_TPC_OLPC_GAIN_DELTA_S),
|
||||||
|
AR_PHY_TPC_OLPC_GAIN_DELTA);
|
||||||
|
|
||||||
/* enable open loop power control on chip */
|
/* enable open loop power control on chip */
|
||||||
REG_RMW(ah, AR_PHY_TPC_6_B0,
|
REG_RMW(ah, AR_PHY_TPC_6_B0,
|
||||||
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
||||||
AR_PHY_TPC_6_ERROR_EST_MODE);
|
AR_PHY_TPC_6_ERROR_EST_MODE);
|
||||||
REG_RMW(ah, AR_PHY_TPC_6_B1,
|
if (ah->caps.tx_chainmask & BIT(1))
|
||||||
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
REG_RMW(ah, AR_PHY_TPC_6_B1,
|
||||||
AR_PHY_TPC_6_ERROR_EST_MODE);
|
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
||||||
REG_RMW(ah, AR_PHY_TPC_6_B2,
|
AR_PHY_TPC_6_ERROR_EST_MODE);
|
||||||
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
if (ah->caps.tx_chainmask & BIT(2))
|
||||||
AR_PHY_TPC_6_ERROR_EST_MODE);
|
REG_RMW(ah, AR_PHY_TPC_6_B2,
|
||||||
|
(3 << AR_PHY_TPC_6_ERROR_EST_MODE_S),
|
||||||
|
AR_PHY_TPC_6_ERROR_EST_MODE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* enable temperature compensation
|
* enable temperature compensation
|
||||||
|
|
Loading…
Add table
Reference in a new issue