diff --git a/hal/led/hal_usb_led.c b/hal/led/hal_usb_led.c index 44324f6..114f322 100644 --- a/hal/led/hal_usb_led.c +++ b/hal/led/hal_usb_led.c @@ -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);