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)
committerKalle Valo <kvalo@kernel.org>
Wed, 12 Oct 2022 04:33:59 +0000 (07:33 +0300)
commit6f103aeb5e985ac08f3a4a049a2c17294f40cff9
treee6a5fef5263443c2b8225301ca884c913af10ac7
parent79cac25e51a6add887151916e96622871328f1e8
wifi: rtl8xxxu: Fix reading the vendor of combo chips

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: 26f1fad29ad9 ("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
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c