aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/reset.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index cb8a9a1398c..d419c6a3ded 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -507,7 +507,7 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
507 507
508 if (ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4)) 508 if (ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4))
509 scal = AR5K_PHY_SCAL_32MHZ_2417; 509 scal = AR5K_PHY_SCAL_32MHZ_2417;
510 else if (ath5k_eeprom_is_hb63(ah)) 510 else if (ee->ee_is_hb63)
511 scal = AR5K_PHY_SCAL_32MHZ_HB63; 511 scal = AR5K_PHY_SCAL_32MHZ_HB63;
512 else 512 else
513 scal = AR5K_PHY_SCAL_32MHZ; 513 scal = AR5K_PHY_SCAL_32MHZ;
@@ -598,9 +598,10 @@ static void ath5k_hw_tweak_initval_settings(struct ath5k_hw *ah,
598 /* Set DAC/ADC delays */ 598 /* Set DAC/ADC delays */
599 if (ah->ah_version == AR5K_AR5212) { 599 if (ah->ah_version == AR5K_AR5212) {
600 u32 scal; 600 u32 scal;
601 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
601 if (ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4)) 602 if (ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4))
602 scal = AR5K_PHY_SCAL_32MHZ_2417; 603 scal = AR5K_PHY_SCAL_32MHZ_2417;
603 else if (ath5k_eeprom_is_hb63(ah)) 604 else if (ee->ee_is_hb63)
604 scal = AR5K_PHY_SCAL_32MHZ_HB63; 605 scal = AR5K_PHY_SCAL_32MHZ_HB63;
605 else 606 else
606 scal = AR5K_PHY_SCAL_32MHZ; 607 scal = AR5K_PHY_SCAL_32MHZ;