]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtl8xxxu: Fix reading the vendor of combo chips
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sat, 8 Oct 2022 10:56:09 +0000 (13:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:40:59 +0000 (11:40 +0100)
commit87177a8abefd11cbadc3adbb3d6d497a8cab2e4b
treed3cd3f3e19e29ab46fff26bdbe90ae442ee67bb9
parent5473121b313e8f760457f2833c6c15e7c260a9b3
wifi: rtl8xxxu: Fix reading the vendor of combo chips

[ Upstream commit 6f103aeb5e985ac08f3a4a049a2c17294f40cff9 ]

The wifi + bluetooth combo chips (RTL8723AU and RTL8723BU) read the
chip vendor from the wrong register because the val32 variable gets
overwritten. Add one more variable to avoid this.

This had no real effect on RTL8723BU. It may have had an effect on
RTL8723AU.

Fixes: 08b253d81906 ("New driver: rtl8xxxu (mac80211)")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/24af8024-2f07-552b-93d8-38823d8e3cb0@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c