r8188eu: Fix reading of EEPROM on big-endian hardware

Signed-off-by: Larry Finger <l]Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-11-24 14:29:11 -06:00
parent 18c80911a2
commit 486757db0d

View file

@ -245,8 +245,8 @@ static void efuse_read_phymap_from_txpktbuf(
rtw_usleep_os(100); rtw_usleep_os(100);
} }
lo32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L); lo32 = le32_to_cpu((__le32)rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L));
hi32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H); hi32 = le32_to_cpu((__le32)rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H));
if (i == 0) { if (i == 0) {
u8 lenc[2]; u8 lenc[2];