svn commit: r209999 - user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416

Adrian Chadd adrian at FreeBSD.org
Tue Jul 13 16:15:04 UTC 2010


Author: adrian
Date: Tue Jul 13 16:15:03 2010
New Revision: 209999
URL: http://svn.freebsd.org/changeset/base/209999

Log:
  Fix the calibration logic to correctly clamp the calculated coefficient.
  
  Obtained from: OpenWRT r22123, 521-ath9k_iqcal_fix.patch

Modified:
  user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c

Modified: user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c
==============================================================================
--- user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c	Tue Jul 13 16:10:15 2010	(r209998)
+++ user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c	Tue Jul 13 16:15:03 2010	(r209999)
@@ -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);
 


More information about the svn-src-user mailing list