Fix the calibration logic to correctly clamp the calculated coefficient.
Obtained from: OpenWRT r22123, 521-ath9k_iqcal_fix.patch
This commit is contained in:
parent
b1567fc88a
commit
4759296b2b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user