]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value
authorYun Lu <luyun@kylinos.cn>
Fri, 12 May 2023 01:20:55 +0000 (09:20 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 15 May 2023 18:19:21 +0000 (21:19 +0300)
commit20429444e653ee8242dfbf815c0c37866beb371b
tree22cb55ff56694f4aef9f4016be00026506b01de8
parent60fc756fc8e6954a5618eecac73b255d651602e4
wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value

When using rtl8192cu with rtl8xxxu driver to connect wifi, there is a
probability of failure, which shows "authentication with ... timed out".
Through debugging, it was found that the RCR register has been inexplicably
modified to an incorrect value, resulting in the nic not being able to
receive authenticated frames.

To fix this problem, add regrcr in rtl8xxxu_priv struct, and store
the RCR value every time the register is written, and use it the next
time the register need to be modified.

Signed-off-by: Yun Lu <luyun@kylinos.cn>
Link: https://lore.kernel.org/all/20230427020512.1221062-1-luyun_611@163.com
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230512012055.2990472-1-luyun_611@163.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c