The ofono_gprs_cid_activated attachment machinery cannot go through
ofono_gprs_status_notify for getting the attached property set because
that would result in the automatic contexts that were just set up
being released. As such, it needs to call gprs_set_attached_property
manually. Doing so, however, means that the driver_attached property
never gets set, resulting in all contexts being released when the
network transitions between registered states (roaming/non-roaming).
---
src/gprs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gprs.c b/src/gprs.c
index 0da9c32..091305a 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -1009,6 +1009,7 @@ static void pri_read_settings_callback(const struct
ofono_error *error,
gprs->flags &= !GPRS_FLAG_ATTACHING;
+ gprs->driver_attached = TRUE;
gprs_set_attached_property(gprs, TRUE);
ofono_dbus_signal_property_changed(conn, pri_ctx->path,
--
2.9.3
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono