rtl8188eu: Add hardware LED blanking

See https://github.com/lwfinger/rtl8188eu/issues/342 for discussion.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2022-12-20 17:24:21 -06:00
parent f4af53305c
commit 51051d2e4b

View file

@ -1339,6 +1339,14 @@ static u32 rtl8188eu_hal_init(PADAPTER Adapter)
_InitHWLed(Adapter);
#endif /* CONFIG_LED */
if (Adapter->registrypriv.led_enable) {
value8 = rtw_read8(Adapter, REG_LEDCFG2) | BIT(5) | BIT(1);
/* Set bits 5 and 1 in REG_LEDCFG2
* These changes will enable hardware LED blinking
*/
rtw_write8(Adapter, REG_LEDCFG2, value8);
}
/* */
/* Joseph Note: Keep RfRegChnlVal for later use. */
/* */