1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Update hal_usb_led.c

* Add rtw_led_ctrl module parameter
This commit is contained in:
Christian kimocoder 2017-10-02 21:26:04 +02:00 committed by GitHub
parent ab0848201f
commit db3659dd87

View File

@ -2308,6 +2308,24 @@ void BlinkHandler(PLED_USB pLed)
return;
}
#ifdef CONFIG_SW_LED
/* led_enable 1 is normal blinking so don't cause always on/off */
if (padapter->registrypriv.led_ctrl != 1) {
if (padapter->registrypriv.led_ctrl == 0)
{
/* Cause LED to be always off */
pLed->BlinkingLedState = RTW_LED_OFF;
/* RTW_INFO("Led off\n"); */
} else {
/* Cause LED to be always on for led_ctrl 2 or greater */
pLed->BlinkingLedState = RTW_LED_ON;
/* RTW_INFO("Led on\n"); */
}
/* Skip various switch cases where SwLedBlink*() called below */
pLed->CurrLedState = LED_UNKNOWN;
}
#endif
switch(ledpriv->LedStrategy)
{
case SW_LED_MODE0: