diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/initvals.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/initvals.c b/drivers/net/wireless/ath/ath5k/initvals.c index 905e4fdffc6d..e49340d18df4 100644 --- a/drivers/net/wireless/ath/ath5k/initvals.c +++ b/drivers/net/wireless/ath/ath5k/initvals.c | |||
@@ -1495,6 +1495,29 @@ int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu) | |||
1495 | rf5112_ini_bbgain, skip_pcu); | 1495 | rf5112_ini_bbgain, skip_pcu); |
1496 | break; | 1496 | break; |
1497 | case AR5K_RF2317: | 1497 | case AR5K_RF2317: |
1498 | |||
1499 | ath5k_hw_ini_mode_registers(ah, | ||
1500 | ARRAY_SIZE(rf2413_ini_mode_end), | ||
1501 | rf2413_ini_mode_end, mode); | ||
1502 | |||
1503 | ath5k_hw_ini_registers(ah, | ||
1504 | ARRAY_SIZE(rf2425_ini_common_end), | ||
1505 | rf2425_ini_common_end, skip_pcu); | ||
1506 | |||
1507 | /* Override settings from rf2413_ini_mode_end */ | ||
1508 | ath5k_hw_reg_write(ah, 0x00180a65, AR5K_PHY_GAIN); | ||
1509 | |||
1510 | /* Override settings from rf2413_ini_common_end */ | ||
1511 | ath5k_hw_reg_write(ah, 0x00004000, AR5K_PHY_AGC); | ||
1512 | AR5K_REG_WRITE_BITS(ah, AR5K_PHY_TPC_RG5, | ||
1513 | AR5K_PHY_TPC_RG5_PD_GAIN_OVERLAP, 0xa); | ||
1514 | ath5k_hw_reg_write(ah, 0x800000a8, 0x8140); | ||
1515 | ath5k_hw_reg_write(ah, 0x000000ff, 0x9958); | ||
1516 | |||
1517 | ath5k_hw_ini_registers(ah, | ||
1518 | ARRAY_SIZE(rf5112_ini_bbgain), | ||
1519 | rf5112_ini_bbgain, skip_pcu); | ||
1520 | break; | ||
1498 | case AR5K_RF2425: | 1521 | case AR5K_RF2425: |
1499 | 1522 | ||
1500 | ath5k_hw_ini_mode_registers(ah, | 1523 | ath5k_hw_ini_mode_registers(ah, |