1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

Update hal_usb_led.c

* Add rtw_led_ctrl module parameter
This commit is contained in:
Christian kimocoder 2017-09-26 19:05:11 +02:00 committed by GitHub
parent 8631a81c2b
commit 3efb0ad921

View File

@ -1749,6 +1749,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:
SwLedBlink(pLed);