Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2010 16:15:04 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r209999 - user/adrian/if_ath_devel/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201007131615.o6DGF41I087881@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007131615.o6DGF41I087881>