From owner-svn-src-all@FreeBSD.ORG Fri Apr 22 10:57:47 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E41A106564A; Fri, 22 Apr 2011 10:57:47 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5CC8FC13; Fri, 22 Apr 2011 10:57:47 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3MAvklL039602; Fri, 22 Apr 2011 10:57:46 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3MAvkrd039599; Fri, 22 Apr 2011 10:57:46 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104221057.p3MAvkrd039599@svn.freebsd.org> From: Adrian Chadd Date: Fri, 22 Apr 2011 10:57:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220946 - in head/sys/dev/ath/ath_hal: . ar9002 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 10:57:47 -0000 Author: adrian Date: Fri Apr 22 10:57:46 2011 New Revision: 220946 URL: http://svn.freebsd.org/changeset/base/220946 Log: Bring over a pdadc calibration fix from ath9k - unused power detector gain values should be 58, not the previous values. Obtained From: linux ath9k Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h head/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h Fri Apr 22 09:59:16 2011 (r220945) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h Fri Apr 22 10:57:46 2011 (r220946) @@ -29,6 +29,8 @@ #define AR9285_RDEXT_DEFAULT 0x1F +#define AR5416_4K_EEP_PD_GAIN_BOUNDARY_DEFAULT 58 + #undef owl_eep_start_loc #ifdef __LINUX_ARM_ARCH__ /* AP71 */ #define owl_eep_start_loc 0 Modified: head/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c Fri Apr 22 09:59:16 2011 (r220945) +++ head/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c Fri Apr 22 10:57:46 2011 (r220946) @@ -871,7 +871,7 @@ ar9285GetGainBoundariesAndPdadcs(struct /* Fill out pdGainBoundaries - only up to 2 allowed here, but hardware allows up to 4 */ while (i < AR5416_PD_GAINS_IN_MASK) { - pPdGainBoundaries[i] = pPdGainBoundaries[i-1]; + pPdGainBoundaries[i] = AR5416_4K_EEP_PD_GAIN_BOUNDARY_DEFAULT; i++; }