diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 70e27d2a5e43..bc992b237ae5 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -679,18 +679,17 @@ static int ar9003_hw_process_ini(struct ath_hw *ah, | |||
679 | * different modal values. | 679 | * different modal values. |
680 | */ | 680 | */ |
681 | if (IS_CHAN_A_FAST_CLOCK(ah, chan)) | 681 | if (IS_CHAN_A_FAST_CLOCK(ah, chan)) |
682 | REG_WRITE_ARRAY(&ah->iniModesAdditional, | 682 | REG_WRITE_ARRAY(&ah->iniModesFastClock, |
683 | modesIndex, regWrites); | 683 | modesIndex, regWrites); |
684 | 684 | ||
685 | if (AR_SREV_9330(ah)) | 685 | REG_WRITE_ARRAY(&ah->iniAdditional, 1, regWrites); |
686 | REG_WRITE_ARRAY(&ah->iniModesAdditional, 1, regWrites); | ||
687 | |||
688 | if (AR_SREV_9340(ah) && !ah->is_clk_25mhz) | ||
689 | REG_WRITE_ARRAY(&ah->iniModesAdditional_40M, 1, regWrites); | ||
690 | 686 | ||
691 | if (AR_SREV_9462(ah)) | 687 | if (AR_SREV_9462(ah)) |
692 | ar9003_hw_prog_ini(ah, &ah->ini_BTCOEX_MAX_TXPWR, 1); | 688 | ar9003_hw_prog_ini(ah, &ah->ini_BTCOEX_MAX_TXPWR, 1); |
693 | 689 | ||
690 | if (chan->channel == 2484) | ||
691 | ar9003_hw_prog_ini(ah, &ah->ini_japan2484, 1); | ||
692 | |||
694 | ah->modes_index = modesIndex; | 693 | ah->modes_index = modesIndex; |
695 | ar9003_hw_override_ini(ah); | 694 | ar9003_hw_override_ini(ah); |
696 | ar9003_hw_set_channel_regs(ah, chan); | 695 | ar9003_hw_set_channel_regs(ah, chan); |
@@ -1320,13 +1319,9 @@ static int ar9003_hw_fast_chan_change(struct ath_hw *ah, | |||
1320 | * different modal values. | 1319 | * different modal values. |
1321 | */ | 1320 | */ |
1322 | if (IS_CHAN_A_FAST_CLOCK(ah, chan)) | 1321 | if (IS_CHAN_A_FAST_CLOCK(ah, chan)) |
1323 | REG_WRITE_ARRAY(&ah->iniModesAdditional, modesIndex, regWrites); | 1322 | REG_WRITE_ARRAY(&ah->iniModesFastClock, modesIndex, regWrites); |
1324 | |||
1325 | if (AR_SREV_9330(ah)) | ||
1326 | REG_WRITE_ARRAY(&ah->iniModesAdditional, 1, regWrites); | ||
1327 | 1323 | ||
1328 | if (AR_SREV_9340(ah) && !ah->is_clk_25mhz) | 1324 | REG_WRITE_ARRAY(&ah->iniAdditional, 1, regWrites); |
1329 | REG_WRITE_ARRAY(&ah->iniModesAdditional_40M, 1, regWrites); | ||
1330 | 1325 | ||
1331 | ah->modes_index = modesIndex; | 1326 | ah->modes_index = modesIndex; |
1332 | *ini_reloaded = true; | 1327 | *ini_reloaded = true; |