mirror of git://git.sysmocom.de/ofono
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).
This commit is contained in:
parent
1fd419e5b4
commit
0167c3339c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue