summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2010-08-14 15:28:15 +0000
committeradrian <adrian@FreeBSD.org>2010-08-14 15:28:15 +0000
commit4759296b2bd9ae1f4dd070f5e78f2c1652cfe067 (patch)
tree8a2436153559b2a95a306126b6aa9a15309d8855 /sys/dev/ath/ath_hal
parentb1567fc88a793d2451dccca6af424040a30ca275 (diff)
downloadFreeBSD-src-4759296b2bd9ae1f4dd070f5e78f2c1652cfe067.zip
FreeBSD-src-4759296b2bd9ae1f4dd070f5e78f2c1652cfe067.tar.gz
Fix the calibration logic to correctly clamp the calculated coefficient.
Obtained from: OpenWRT r22123, 521-ath9k_iqcal_fix.patch
Diffstat (limited to 'sys/dev/ath/ath_hal')
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c b/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c
index 82555b2..939ba12 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c
@@ -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);
OpenPOWER on IntegriCloud