diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2016-12-28 22:40:04 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-12-30 14:56:53 +0100 |
commit | 40b368af4b750863b2cb66a3a9513241db2f0793 (patch) | |
tree | a708e20ad53629297c0a09ea95d82941898022b5 /drivers/net/wireless/realtek/rtlwifi/rtl8821ae | |
parent | libertas: constify cfg80211_ops structures (diff) | |
download | linux-40b368af4b750863b2cb66a3a9513241db2f0793.tar.xz linux-40b368af4b750863b2cb66a3a9513241db2f0793.zip |
rtlwifi: Fix alignment issues
The addresses of Wlan NIC registers are natural alignment, but some
drivers have bugs. These are evident on platforms that need natural
alignment to access registers. This change contains the following:
1. Function _rtl8821ae_dbi_read() is used to read one byte from DBI,
thus it should use rtl_read_byte().
2. Register 0x4C7 of 8192ee is single byte.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rtl8821ae')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c index a4e37e764563..4f83eee1ff75 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c @@ -1127,7 +1127,7 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr) } if (0 == tmp) { read_addr = REG_DBI_RDATA + addr % 4; - ret = rtl_read_word(rtlpriv, read_addr); + ret = rtl_read_byte(rtlpriv, read_addr); } return ret; } |