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

Commit 0cf31079 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k_hw: Fix endian bug in an AR9003 EEPROM field

parent d10baf99
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -659,6 +659,9 @@ static void ar9300_swap_eeprom(struct ar9300_eeprom *eep)
	word = swab16(eep->baseEepHeader.regDmn[1]);
	eep->baseEepHeader.regDmn[1] = word;

	dword = swab32(eep->baseEepHeader.swreg);
	eep->baseEepHeader.swreg = dword;

	dword = swab32(eep->modalHeader2G.antCtrlCommon);
	eep->modalHeader2G.antCtrlCommon = dword;