mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
ath9k_hw: Fix endian bug in an AR9003 EEPROM field
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
d10baf99ff
commit
0cf31079e9
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue