Date: Thu, 10 Mar 2011 06:06:27 +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: r219443 - head/sys/dev/ath/ath_hal/ar5416 Message-ID: <201103100606.p2A66RWN033276@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103100606.p2A66RWN033276>