From 486757db0d1c7f33f7546647d6b958a0540bde19 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 24 Nov 2014 14:29:11 -0600 Subject: [PATCH] r8188eu: Fix reading of EEPROM on big-endian hardware Signed-off-by: Larry Finger --- hal/rtl8188e_hal_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/rtl8188e_hal_init.c b/hal/rtl8188e_hal_init.c index d76052a..7b305c3 100644 --- a/hal/rtl8188e_hal_init.c +++ b/hal/rtl8188e_hal_init.c @@ -245,8 +245,8 @@ static void efuse_read_phymap_from_txpktbuf( rtw_usleep_os(100); } - lo32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L); - hi32 = rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H); + lo32 = le32_to_cpu((__le32)rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L)); + hi32 = le32_to_cpu((__le32)rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H)); if (i == 0) { u8 lenc[2];