1 --- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
3 @@ -561,8 +561,8 @@ static void ar9003_tx_gain_table_mode1(s
5 else if (AR_SREV_9340(ah))
6 INIT_INI_ARRAY(&ah->iniModesTxGain,
7 - ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
8 - ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
9 + ar9340Modes_high_ob_db_tx_gain_table_1p0,
10 + ARRAY_SIZE(ar9340Modes_high_ob_db_tx_gain_table_1p0),
12 else if (AR_SREV_9485_11(ah))
13 INIT_INI_ARRAY(&ah->iniModesTxGain,
14 @@ -605,8 +605,8 @@ static void ar9003_tx_gain_table_mode2(s
16 else if (AR_SREV_9340(ah))
17 INIT_INI_ARRAY(&ah->iniModesTxGain,
18 - ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
19 - ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
20 + ar9340Modes_low_ob_db_tx_gain_table_1p0,
21 + ARRAY_SIZE(ar9340Modes_low_ob_db_tx_gain_table_1p0),
23 else if (AR_SREV_9485_11(ah))
24 INIT_INI_ARRAY(&ah->iniModesTxGain,
25 @@ -639,8 +639,8 @@ static void ar9003_tx_gain_table_mode3(s
27 else if (AR_SREV_9340(ah))
28 INIT_INI_ARRAY(&ah->iniModesTxGain,
29 - ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
30 - ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
31 + ar9340Modes_high_power_tx_gain_table_1p0,
32 + ARRAY_SIZE(ar9340Modes_high_power_tx_gain_table_1p0),
34 else if (AR_SREV_9485_11(ah))
35 INIT_INI_ARRAY(&ah->iniModesTxGain,
36 @@ -659,6 +659,20 @@ static void ar9003_tx_gain_table_mode3(s
40 +static void ar9003_tx_gain_table_mode4(struct ath_hw *ah)
42 + if (AR_SREV_9340(ah))
43 + INIT_INI_ARRAY(&ah->iniModesTxGain,
44 + ar9340Modes_mixed_ob_db_tx_gain_table_1p0,
45 + ARRAY_SIZE(ar9340Modes_mixed_ob_db_tx_gain_table_1p0),
47 + else if (AR_SREV_9580(ah))
48 + INIT_INI_ARRAY(&ah->iniModesTxGain,
49 + ar9580_1p0_mixed_ob_db_tx_gain_table,
50 + ARRAY_SIZE(ar9580_1p0_mixed_ob_db_tx_gain_table),
54 static void ar9003_tx_gain_table_apply(struct ath_hw *ah)
56 switch (ar9003_hw_get_tx_gain_idx(ah)) {
57 @@ -675,6 +689,9 @@ static void ar9003_tx_gain_table_apply(s
59 ar9003_tx_gain_table_mode3(ah);
62 + ar9003_tx_gain_table_mode4(ah);