mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-03 21:04:05 +00:00
Update hal_usb_led.c
* Add rtw_led_ctrl module parameter
This commit is contained in:
parent
8631a81c2b
commit
3efb0ad921
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user