Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25f63a5a authored by Adrian Chadd's avatar Adrian Chadd Committed by John W. Linville
Browse files

ath9k: fix AR9160 xpaBiasLvlFreq endianness handling



The xpaBiasLvlFreq parameter array is made up of 16 bit words which
aren't byte-swapped like the other 16-bit eeprom parameters are.
It's only used by the AR9160.

Signed-off-by: default avatarAdrian Chadd <adrian@freebsd.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 92c6f76c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -231,6 +231,10 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah)
				integer = swab32(pModal->antCtrlChain[i]);
				pModal->antCtrlChain[i] = integer;
			}
			for (i = 0; i < 3; i++) {
				word = swab16(pModal->xpaBiasLvlFreq[i]);
				pModal->xpaBiasLvlFreq[i] = word;
			}

			for (i = 0; i < AR_EEPROM_MODAL_SPURS; i++) {
				word = swab16(pModal->spurChans[i].spurChan);