diff options
author | adrian <adrian@FreeBSD.org> | 2011-04-05 13:14:17 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-04-05 13:14:17 +0000 |
commit | 9c386c4f5d3c0beb1ca528e3e3bad090671320f1 (patch) | |
tree | f730bd977242ec6dd419e9cb9aaf798916e76556 /sys/dev | |
parent | 61779229d82d3674d7e5f2cdc525b48c4323c996 (diff) | |
download | FreeBSD-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.c | 5 |
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; |