wifi: rtl8xxxu: RTL8192EU always needs full init
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Mon, 13 Mar 2023 13:42:59 +0000 (15:42 +0200)
committerKalle Valo <kvalo@kernel.org>
Mon, 20 Mar 2023 05:53:52 +0000 (07:53 +0200)
commitd46e04ccd40457a0119b76e11ab64a2ad403e138
tree96151230f990c26caa6039c06df6c2f2d5cb6bc8
parent499183cc3b52613f06cf4ce70809546971c96ed8
wifi: rtl8xxxu: RTL8192EU always needs full init

Always run the entire init sequence (rtl8xxxu_init_device()) for
RTL8192EU. It's what the vendor driver does too.

This fixes a bug where the device is unable to connect after
rebooting:

wlp3s0f3u2: send auth to ... (try 1/3)
wlp3s0f3u2: send auth to ... (try 2/3)
wlp3s0f3u2: send auth to ... (try 3/3)
wlp3s0f3u2: authentication with ... timed out

Rebooting leaves the device powered on (partially? at least the
firmware is still running), but not really in a working state.

Cc: stable@vger.kernel.org
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Jes Sorensen <jes@trained-monkey.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/4eb111a9-d4c4-37d0-b376-4e202de7153c@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c