Author: adrian Date: Sat Aug 14 15:28:15 2010 New Revision: 211306 URL: http://svn.freebsd.org/changeset/base/211306
Log: Fix the calibration logic to correctly clamp the calculated coefficient. Obtained from: OpenWRT r22123, 521-ath9k_iqcal_fix.patch Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c Sat Aug 14 15:21:06 2010 (r211305) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c Sat Aug 14 15:28:15 2010 (r211306) @@ -115,7 +115,7 @@ ar5416IQCalibration(struct ath_hal *ah, 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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"