core: set STATE_REASON_CONNECTION_ASSUMED when waking up

Otherwise, external devices become managed and we clear IP addresses.
This commit is contained in:
Fernando Fernandez Mancera
2023-01-24 12:37:14 +01:00
parent f00db8e15d
commit 5a9a7623c5

View File

@@ -7077,7 +7077,7 @@ do_sleep_wake(NMManager *self, gboolean sleeping_changed)
nm_device_set_unmanaged_by_flags(device,
NM_UNMANAGED_SLEEPING,
NM_UNMAN_FLAG_OP_SET_MANAGED,
NM_DEVICE_STATE_REASON_NOW_MANAGED);
NM_DEVICE_STATE_REASON_CONNECTION_ASSUMED);
}
/* Give the connections a chance to recreate the virtual devices.