wifi: rtl8xxxu: Add LED control code for RTL8192CU family
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 18 Apr 2024 22:03:35 +0000 (01:03 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 23 Apr 2024 10:52:30 +0000 (18:52 +0800)
commitfbeddb4a767de1d5d6762a1cc54836e1dc8a8fd2
tree9a11b962d8a4d40195d9d0d5bdb94b83c6de0bf7
parent110951b8faa0b0ac412f67517d2a5c148ea99abe
wifi: rtl8xxxu: Add LED control code for RTL8192CU family

Also, don't set bit 7 of LEDCFG2 for RTL8192CU. If bit 7 is set the LED
never turns on. In this family only RTL8188CUS needs bit 7 of LEDCFG2
set.

Software control (on/off) and hardware control (automatic blinking)
tested with Netcore NW362 (RTL8192CU).

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/4b5970cf-d28b-415a-b911-82cdb5e9ce99@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c