device: fix optional 802.1X authentication

If the authentication is optional, we are going to re-enter stage2. Set
the "ready" variable so that we can return success immediately and
skip to stage3.
This commit is contained in:
Beniamino Galvani 2021-11-04 17:19:02 +01:00
parent de5e1eb9e5
commit a319193333

View file

@ -479,6 +479,7 @@ wired_auth_cond_fail(NMDeviceEthernet *self, NMDeviceStateReason reason)
_LOGI(LOGD_DEVICE | LOGD_ETHER,
"Activation: (ethernet) 802.1X authentication is optional, continuing after a failure");
priv->supplicant.ready = TRUE;
if (NM_IN_SET(nm_device_get_state(device), NM_DEVICE_STATE_CONFIG, NM_DEVICE_STATE_NEED_AUTH))
nm_device_activate_schedule_stage2_device_config(device, FALSE);