diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-26 15:04:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-27 16:09:20 -0400 |
commit | 0cf31079e98be01baffb22a2e3ad0cbc58420a41 (patch) | |
tree | 9a112bd6597fdfc6dc69aee7e39aae44b9c44ca6 /drivers | |
parent | d10baf99ffd1926c30401342779866ae7d73e2c4 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index 25dd44d54b72..8a79550dff71 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |||
@@ -659,6 +659,9 @@ static void ar9300_swap_eeprom(struct ar9300_eeprom *eep) | |||
659 | word = swab16(eep->baseEepHeader.regDmn[1]); | 659 | word = swab16(eep->baseEepHeader.regDmn[1]); |
660 | eep->baseEepHeader.regDmn[1] = word; | 660 | eep->baseEepHeader.regDmn[1] = word; |
661 | 661 | ||
662 | dword = swab32(eep->baseEepHeader.swreg); | ||
663 | eep->baseEepHeader.swreg = dword; | ||
664 | |||
662 | dword = swab32(eep->modalHeader2G.antCtrlCommon); | 665 | dword = swab32(eep->modalHeader2G.antCtrlCommon); |
663 | eep->modalHeader2G.antCtrlCommon = dword; | 666 | eep->modalHeader2G.antCtrlCommon = dword; |
664 | 667 | ||