diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/calib.c')
-rw-r--r-- | drivers/net/wireless/ath9k/calib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/calib.c b/drivers/net/wireless/ath9k/calib.c index e5abe6564ca7..93c6e1f72353 100644 --- a/drivers/net/wireless/ath9k/calib.c +++ b/drivers/net/wireless/ath9k/calib.c | |||
@@ -893,7 +893,8 @@ bool ath9k_hw_init_cal(struct ath_hw *ah, | |||
893 | AR_PHY_AGC_CONTROL_CAL); | 893 | AR_PHY_AGC_CONTROL_CAL); |
894 | 894 | ||
895 | if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, | 895 | if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, |
896 | AR_PHY_AGC_CONTROL_CAL, 0)) { | 896 | AR_PHY_AGC_CONTROL_CAL, 0, |
897 | AH_WAIT_TIMEOUT)) { | ||
897 | DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, | 898 | DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, |
898 | "offset calibration failed to complete in 1ms; " | 899 | "offset calibration failed to complete in 1ms; " |
899 | "noisy environment?\n"); | 900 | "noisy environment?\n"); |
@@ -910,7 +911,8 @@ bool ath9k_hw_init_cal(struct ath_hw *ah, | |||
910 | REG_READ(ah, AR_PHY_AGC_CONTROL) | | 911 | REG_READ(ah, AR_PHY_AGC_CONTROL) | |
911 | AR_PHY_AGC_CONTROL_CAL); | 912 | AR_PHY_AGC_CONTROL_CAL); |
912 | 913 | ||
913 | if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, 0)) { | 914 | if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, |
915 | 0, AH_WAIT_TIMEOUT)) { | ||
914 | DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, | 916 | DPRINTF(ah->ah_sc, ATH_DBG_CALIBRATE, |
915 | "offset calibration failed to complete in 1ms; " | 917 | "offset calibration failed to complete in 1ms; " |
916 | "noisy environment?\n"); | 918 | "noisy environment?\n"); |