From owner-svn-src-head@FreeBSD.ORG Tue Apr 5 13:14:18 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 455D5106566B; Tue, 5 Apr 2011 13:14:18 +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 351188FC14; Tue, 5 Apr 2011 13:14:18 +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 p35DEIQh019176; Tue, 5 Apr 2011 13:14:18 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p35DEINg019174; Tue, 5 Apr 2011 13:14:18 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104051314.p35DEINg019174@svn.freebsd.org> From: Adrian Chadd Date: Tue, 5 Apr 2011 13:14:18 +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: r220360 - head/sys/dev/ath/ath_hal X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 13:14:18 -0000 Author: adrian Date: Tue Apr 5 13:14:17 2011 New Revision: 220360 URL: http://svn.freebsd.org/changeset/base/220360 Log: The xpaBiasLvlFreq[] fields in the modal header also need swapping when the EEPROM contents are byte-swapped. Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Tue Apr 5 08:49:47 2011 (r220359) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Tue Apr 5 13:14:17 2011 (r220360) @@ -224,7 +224,10 @@ eepromSwap(struct ar5416eeprom *ee) integer = __bswap32(pModal->antCtrlChain[i]); pModal->antCtrlChain[i] = integer; } - + for (i = 0; i < 3; i++) { + word = __bswap16(pModal->xpaBiasLvlFreq[i]); + pModal->xpaBiasLvlFreq[i] = word; + } for (i = 0; i < AR5416_EEPROM_MODAL_SPURS; i++) { word = __bswap16(pModal->spurChans[i].spurChan); pModal->spurChans[i].spurChan = word;