From: Pasi Sjöholm <[email protected]>

Ofono can signal new configuration while context is active and therefore
set_connected needs to be called.
---
 plugins/ofono.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugins/ofono.c b/plugins/ofono.c
index 16d3b41..9db9898 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1220,10 +1220,16 @@ static gboolean context_changed(DBusConnection *conn,
                DBG("%s Settings", modem->path);
 
                extract_ipv4_settings(&value, modem->context);
+
+               if (modem->active && modem->context->index > -1)
+                       set_connected(modem);
        } else if (g_str_equal(key, "IPv6.Settings")) {
                DBG("%s IPv6.Settings", modem->path);
 
                extract_ipv6_settings(&value, modem->context);
+
+               if (modem->active && modem->context->index > -1)
+                       set_connected(modem);
        } else if (g_str_equal(key, "Active")) {
                dbus_bool_t active;
 
-- 
2.1.0

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to