Show actual timeout value in failed calibration messages.
authorRobert Shade <robert.shade@gmail.com>
Wed, 27 Mar 2013 15:46:27 +0000 (11:46 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Mar 2013 17:39:08 +0000 (13:39 -0400)
The messages are currently hard coding "1ms", which does not match
the actual timeout being used.

Signed-off-by: Robert Shade <robert.shade@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_calib.c
drivers/net/wireless/ath/ath9k/ar9003_calib.c

index c55e5bbafc4676947d861d5203491a85230cbe38..9f589744a9f945b285ca1c2988d795488cbf7a47 100644 (file)
@@ -731,7 +731,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah, struct ath9k_channel *chan)
                if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL,
                                  AR_PHY_AGC_CONTROL_CAL, 0, AH_WAIT_TIMEOUT)) {
                        ath_dbg(common, CALIBRATE,
-                               "offset calibration failed to complete in 1ms; noisy environment?\n");
+                               "offset calibration failed to complete in %d ms; noisy environment?\n",
+                               AH_WAIT_TIMEOUT / 1000);
                        return false;
                }
                REG_CLR_BIT(ah, AR_PHY_TURBO, AR_PHY_FC_DYN2040_EN);
@@ -745,7 +746,8 @@ static bool ar9285_hw_cl_cal(struct ath_hw *ah, struct ath9k_channel *chan)
        if (!ath9k_hw_wait(ah, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL,
                          0, AH_WAIT_TIMEOUT)) {
                ath_dbg(common, CALIBRATE,
-                       "offset calibration failed to complete in 1ms; noisy environment?\n");
+                       "offset calibration failed to complete in %d ms; noisy environment?\n",
+                       AH_WAIT_TIMEOUT / 1000);
                return false;
        }
 
@@ -841,7 +843,8 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan)
                                   AR_PHY_AGC_CONTROL_CAL,
                                   0, AH_WAIT_TIMEOUT)) {
                        ath_dbg(common, CALIBRATE,
-                               "offset calibration failed to complete in 1ms; noisy environment?\n");
+                               "offset calibration failed to complete in %d ms; noisy environment?\n",
+                               AH_WAIT_TIMEOUT / 1000);
                        return false;
                }
 
index 4cc13940c8950d2a7ad2a3fdf1a092ac3736a7d5..e1770e60be2543ec8e4e50960bcfa44e72dd5da6 100644 (file)
@@ -1125,7 +1125,8 @@ skip_tx_iqcal:
                        ar9003_hw_rtt_disable(ah);
 
                ath_dbg(common, CALIBRATE,
-                       "offset calibration failed to complete in 1ms; noisy environment?\n");
+                       "offset calibration failed to complete in %d ms; noisy environment?\n",
+                       AH_WAIT_TIMEOUT / 1000);
                return false;
        }