wifi: rtl8xxxu: Fix LED control code of RTL8192FU
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sat, 30 Dec 2023 22:45:54 +0000 (00:45 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Jan 2024 14:55:18 +0000 (16:55 +0200)
commit9475cc7ac31503521af95e38151e9d856e8ff30b
treedf1f2dcca079f58e868738cbd38c2e09dae14f12
parent1cd165adf314f6bf25cde58f02f4ff51d01730b0
wifi: rtl8xxxu: Fix LED control code of RTL8192FU

Some devices, like the Comfast CF-826F, use LED1, which already works.
Others, like Asus USB-N13 C1, use LED0, which doesn't work correctly.

Write the right values to the LED control registers to make LED0 work
as well.

This is unfortunately tested only with the Comfast CF-826F.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/7a2c3158-3a45-4466-b11e-fc09802b20e2@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h