device,plugin: reset MMDevice's hotplugged after creating the modem

The hotplugged flag was added to simplify modem probe on first time it
is created. Before the re-probe it must be set to FALSE to destroy all
existing netlink interfaces and force full reconfiguration.
This commit is contained in:
Michal Mazur
2024-12-19 09:42:26 +00:00
parent 1e865d76a8
commit 66aa3d16e5
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -962,6 +962,8 @@ mm_plugin_create_modem (MMPlugin *self,
return NULL;
mm_base_modem_set_hotplugged (modem, mm_device_get_hotplugged (device));
/* Reset hotplugged flag to guarantee full reconfiguration on next probe */
mm_device_reset_hotplugged (device);
if (port_probes) {
GList *l;