mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-29 07:33:39 +00:00
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:
parent
f4af53305c
commit
51051d2e4b
1 changed files with 8 additions and 0 deletions
|
@ -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. */
|
||||
/* */
|
||||
|
|
Loading…
Reference in a new issue