Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent 2976bc5e
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah)

	/* Accumulate IQ cal measures for active chains */
	for (i = 0; i < AR5416_MAX_CHAINS; i++) {
		if (ah->txchainmask & BIT(i)) {
			ah->totalPowerMeasI[i] +=
				REG_READ(ah, AR_PHY_CAL_MEAS_0(i));
			ah->totalPowerMeasQ[i] +=
@@ -198,6 +199,7 @@ static void ar9003_hw_iqcal_collect(struct ath_hw *ah)
				ah->totalIqCorrMeas[i]);
		}
	}
}

static void ar9003_hw_iqcalibrate(struct ath_hw *ah, u8 numChains)
{