svn commit: r219443 - head/sys/dev/ath/ath_hal/ar5416

Adrian Chadd adrian at FreeBSD.org
Thu Mar 10 06:06:27 UTC 2011


Author: adrian
Date: Thu Mar 10 06:06:26 2011
New Revision: 219443
URL: http://svn.freebsd.org/changeset/base/219443

Log:
  Merlin fix - first pdadc gain index is 0 - minpwr/2 .
  
  Obtained from:	Linux ath9k

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c	Thu Mar 10 03:13:56 2011	(r219442)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c	Thu Mar 10 06:06:26 2011	(r219443)
@@ -2236,7 +2236,10 @@ ar5416GetGainBoundariesAndPdadcs(struct 
 
         /* Find starting index for this pdGain */
         if (i == 0) {
-            ss = 0; /* for the first pdGain, start from index 0 */
+            if (AR_SREV_MERLIN_20_OR_LATER(ah))
+                ss = (int16_t)(0 - (minPwrT4[i] / 2));
+            else
+                ss = 0; /* for the first pdGain, start from index 0 */
         } else {
 	    /* need overlap entries extrapolated below. */
             ss = (int16_t)((pPdGainBoundaries[i-1] - (minPwrT4[i] / 2)) - tPdGainOverlap + 1 + minDelta);


More information about the svn-src-all mailing list