mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-12 23:10:18 +01:00
device: don't disconnect assumed connections
Transition them to activated status when they fail. https://bugzilla.redhat.com/show_bug.cgi?id=1141264
This commit is contained in:
parent
063ab8da5c
commit
55af4add90
1 changed files with 8 additions and 0 deletions
|
|
@ -7465,6 +7465,14 @@ _set_state_full (NMDevice *self,
|
|||
nm_dispatcher_call (DISPATCHER_ACTION_UP, nm_act_request_get_connection (req), self, NULL, NULL, NULL);
|
||||
break;
|
||||
case NM_DEVICE_STATE_FAILED:
|
||||
if (nm_device_uses_assumed_connection (self)) {
|
||||
/* Avoid tearing down assumed connection, assume it's connected */
|
||||
nm_device_queue_state (self,
|
||||
NM_DEVICE_STATE_ACTIVATED,
|
||||
NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED);
|
||||
break;
|
||||
}
|
||||
|
||||
connection = nm_device_get_connection (self);
|
||||
_LOGW (LOGD_DEVICE | LOGD_WIFI,
|
||||
"Activation: failed for connection '%s'",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue