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,6 +185,7 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah) ...@@ -185,6 +185,7 @@ 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++) {
if (ah->txchainmask & BIT(i)) {
ah->totalPowerMeasI[i] += ah->totalPowerMeasI[i] +=
REG_READ(ah, AR_PHY_CAL_MEAS_0(i)); REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
ah->totalPowerMeasQ[i] += ah->totalPowerMeasQ[i] +=
...@@ -197,6 +198,7 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah) ...@@ -197,6 +198,7 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah)
ah->totalPowerMeasQ[i], ah->totalPowerMeasQ[i],
ah->totalIqCorrMeas[i]); ah->totalIqCorrMeas[i]);
} }
}
} }
static void ar9003_hw_iqcalibrate(struct ath_hw *ah, u8 numChains) static void ar9003_hw_iqcalibrate(struct ath_hw *ah, u8 numChains)
......
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