ath9k_hw: Fix endian bug in an AR9003 EEPROM field
authorFelix Fietkau <nbd@openwrt.org>
Mon, 26 Apr 2010 19:04:39 +0000 (15:04 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Apr 2010 20:09:20 +0000 (16:09 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

index 25dd44d54b729a8b7556bfe55164b7fd93683218..8a79550dff71f3f085e5987964d814ddc059c14f 100644 (file)
@@ -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;