staging: r8188eu: reset blink state when WPS fails
When WPS fails, WPS blinking is no longer in progress. The if statement can be removed. Tested-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220905200146.82259-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9b34e23b1f
commit
96b3043412
@ -358,9 +358,7 @@ void rtw_led_control(struct adapter *padapter, enum LED_CTL_MODE LedAction)
|
||||
break;
|
||||
case LED_CTL_STOP_WPS_FAIL:
|
||||
cancel_delayed_work(&pLed->blink_work);
|
||||
if (pLed->bLedWPSBlinkInProgress) {
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
pLed->bLedNoLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SLOWLY;
|
||||
if (pLed->bLedOn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user