device: remove activated condition when the carrier was down

Call nm_device_update_dynamic_ip_setup every time the carrier was down or was seen down and is now up again, without checking if the state is NM_DEVICE_STATE_ACTIVATED.

Change discussed in https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2173
This commit is contained in:
Friedrich Altheide
2025-04-14 11:27:09 +02:00
parent 87453425ef
commit c7fc8a4d09

View File

@@ -7755,9 +7755,7 @@ device_link_changed(gpointer user_data)
* tagged for carrier ignore) ensure that when the carrier appears we
* renew DHCP leases and such.
*/
if (priv->state == NM_DEVICE_STATE_ACTIVATED) {
nm_device_update_dynamic_ip_setup(self, "interface got carrier");
}
nm_device_update_dynamic_ip_setup(self, "interface got carrier");
}
if (update_unmanaged_specs)