Commit 5d48ae78 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by John W. Linville
Browse files

ath9k_hw: Read iq calibration data only for active chains


Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2976bc5e
...@@ -185,17 +185,19 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah) ...@@ -185,17 +185,19 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah)
/* Accumulate IQ cal measures for active chains */ /* Accumulate IQ cal measures for active chains */
for (i = 0; i < AR5416_MAX_CHAINS; i++) { for (i = 0; i < AR5416_MAX_CHAINS; i++) {
ah->totalPowerMeasI[i] += if (ah->txchainmask & BIT(i)) {
REG_READ(ah, AR_PHY_CAL_MEAS_0(i)); ah->totalPowerMeasI[i] +=
ah->totalPowerMeasQ[i] += REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
REG_READ(ah, AR_PHY_CAL_MEAS_1(i)); ah->totalPowerMeasQ[i] +=
ah->totalIqCorrMeas[i] += REG_READ(ah, AR_PHY_CAL_MEAS_1(i));
(int32_t) REG_READ(ah, AR_PHY_CAL_MEAS_2(i)); ah->totalIqCorrMeas[i] +=
ath_dbg(ath9k_hw_common(ah), ATH_DBG_CALIBRATE, (int32_t) REG_READ(ah, AR_PHY_CAL_MEAS_2(i));
"%d: Chn %d pmi=0x%08x;pmq=0x%08x;iqcm=0x%08x;\n", ath_dbg(ath9k_hw_common(ah), ATH_DBG_CALIBRATE,
ah->cal_samples, i, ah->totalPowerMeasI[i], "%d: Chn %d pmi=0x%08x;pmq=0x%08x;iqcm=0x%08x;\n",
ah->totalPowerMeasQ[i], ah->cal_samples, i, ah->totalPowerMeasI[i],
ah->totalIqCorrMeas[i]); ah->totalPowerMeasQ[i],
ah->totalIqCorrMeas[i]);
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment