Date: Tue, 5 Apr 2011 13:14:18 +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: r220360 - head/sys/dev/ath/ath_hal Message-ID: <201104051314.p35DEINg019174@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104051314.p35DEINg019174>