diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index feae55a8124d..81965b2d263b 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -815,15 +815,30 @@ static void ath9k_hw_init_mode_gain_regs(struct ath_hw *ah) | |||
815 | 815 | ||
816 | /* txgain table */ | 816 | /* txgain table */ |
817 | if (txgain_type == AR5416_EEP_TXGAIN_HIGH_POWER) { | 817 | if (txgain_type == AR5416_EEP_TXGAIN_HIGH_POWER) { |
818 | INIT_INI_ARRAY(&ah->iniModesTxGain, | 818 | if (AR_SREV_9285E_20(ah)) { |
819 | ar9285Modes_high_power_tx_gain_9285_1_2, | 819 | INIT_INI_ARRAY(&ah->iniModesTxGain, |
820 | ARRAY_SIZE(ar9285Modes_high_power_tx_gain_9285_1_2), 6); | 820 | ar9285Modes_XE2_0_high_power, |
821 | ARRAY_SIZE( | ||
822 | ar9285Modes_XE2_0_high_power), 6); | ||
823 | } else { | ||
824 | INIT_INI_ARRAY(&ah->iniModesTxGain, | ||
825 | ar9285Modes_high_power_tx_gain_9285_1_2, | ||
826 | ARRAY_SIZE( | ||
827 | ar9285Modes_high_power_tx_gain_9285_1_2), 6); | ||
828 | } | ||
821 | } else { | 829 | } else { |
822 | INIT_INI_ARRAY(&ah->iniModesTxGain, | 830 | if (AR_SREV_9285E_20(ah)) { |
823 | ar9285Modes_original_tx_gain_9285_1_2, | 831 | INIT_INI_ARRAY(&ah->iniModesTxGain, |
824 | ARRAY_SIZE(ar9285Modes_original_tx_gain_9285_1_2), 6); | 832 | ar9285Modes_XE2_0_normal_power, |
833 | ARRAY_SIZE( | ||
834 | ar9285Modes_XE2_0_normal_power), 6); | ||
835 | } else { | ||
836 | INIT_INI_ARRAY(&ah->iniModesTxGain, | ||
837 | ar9285Modes_original_tx_gain_9285_1_2, | ||
838 | ARRAY_SIZE( | ||
839 | ar9285Modes_original_tx_gain_9285_1_2), 6); | ||
840 | } | ||
825 | } | 841 | } |
826 | |||
827 | } | 842 | } |
828 | } | 843 | } |
829 | 844 | ||