svn commit: r220360 - head/sys/dev/ath/ath_hal
Adrian Chadd
adrian at FreeBSD.org
Tue Apr 5 13:14:18 UTC 2011
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;
More information about the svn-src-all
mailing list