summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-05 13:14:17 +0000
committeradrian <adrian@FreeBSD.org>2011-04-05 13:14:17 +0000
commit9c386c4f5d3c0beb1ca528e3e3bad090671320f1 (patch)
treef730bd977242ec6dd419e9cb9aaf798916e76556 /sys/dev
parent61779229d82d3674d7e5f2cdc525b48c4323c996 (diff)
downloadFreeBSD-src-9c386c4f5d3c0beb1ca528e3e3bad090671320f1.zip
FreeBSD-src-9c386c4f5d3c0beb1ca528e3e3bad090671320f1.tar.gz
The xpaBiasLvlFreq[] fields in the modal header also need swapping
when the EEPROM contents are byte-swapped.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/ath_hal/ah_eeprom_v14.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v14.c b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
index f36e00b..150fa82 100644
--- a/sys/dev/ath/ath_hal/ah_eeprom_v14.c
+++ b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
@@ -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;
OpenPOWER on IntegriCloud