From 0167c3339ca8f17a653592af995f439d24405de8 Mon Sep 17 00:00:00 2001 From: Jonas Bonn Date: Fri, 14 Apr 2017 23:36:38 +0200 Subject: [PATCH] gprs: set driver_attached when activating automatic contexts 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 9fc51f1c..c5e77092 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,