Fix the calibration logic to correctly clamp the calculated coefficient.

Obtained from:	OpenWRT r22123, 521-ath9k_iqcal_fix.patch
This commit is contained in:
adrian 2010-08-14 15:28:15 +00:00
parent b1567fc88a
commit 4759296b2b

View File

@ -115,7 +115,7 @@ ar5416IQCalibration(struct ath_hal *ah, uint8_t numChains)
if (qCoff > 15)
qCoff = 15;
else if (qCoff <= -16)
qCoff = 16;
qCoff = -16;
HALDEBUG(ah, HAL_DEBUG_PERCAL,
" : iCoff = 0x%x qCoff = 0x%x\n", iCoff, qCoff);