ath9k: Apply CUS227 specific TX gain values
PATCH 1/1 ath9k: Apply CUS227 specific TX gain values
From: Sujith Manoharan <[email protected]>
CUS227, which is an AR9340 based card used in Qualcomm's Allplay platforms requires a custom TX gain array, based on the index 7. Add suport for this.
Cc Michael Larson <[email protected]>
Cc Stephen Collmeyer <[email protected]>
Signed-off-by Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath9k/ar9003_hw.c | 8 ++ drivers/net/wireless/ath/ath9k/ar9340_initvals.h | 102 +++++++++++++++++++++++ 2 files changed, 110 insertions(+)
drivers/net/wireless/ath/ath9k/ar9003_hw.c +8 -0
@@ -578,6 +578,13 @@ static void ar9003_tx_gain_table_mode6(struct ath_hw *ah) ar9580_1p0_type6_tx_gain_table); } +static void ar9003_tx_gain_table_mode7 (struct ath_hw *ah) +{ +if (AR_SREV_9340 (ah)) +INIT_INI_ARRAY (&ah->iniModesTxGain, + ar9340_cus227_tx_gain_table_1p0); +} +typedef void (*ath_txgain_tab )(struct ath_hw *ah);static void ar9003_tx_gain_table_apply (struct ath_hw *ah)
@@ -590,6 +597,7 @@ static void ar9003_tx_gain_table_apply(struct ath_hw *ah) ar9003_tx_gain_table_mode4, ar9003_tx_gain_table_mode5, ar9003_tx_gain_table_mode6, + ar9003_tx_gain_table_mode7, };int idx =ar9003_hw_get_tx_gain_idx (ah);
drivers/net/wireless/ath/ath9k/ar9340_initvals.h +102 -0
106 lines not on this page · raw message
Signature · 1 line
1.8.4.2