The xpaBiasLvlFreq[] fields in the modal header also need swapping

when the EEPROM contents are byte-swapped.
This commit is contained in:
Adrian Chadd 2011-04-05 13:14:17 +00:00
parent 1b59591956
commit 74e3a02137

View File

@ -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;