Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2010 15:28:15 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211306 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201008141528.o7EFSFCr031534@svn.freebsd.org>

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



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