diff options
author | Sven Schwermer <sven.schwermer@disruptive-technologies.com> | 2022-03-10 09:31:51 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-06-19 15:11:10 +0200 |
commit | 661a63b37b312e15cf9c3c7265859704740d2d1d (patch) | |
tree | 567de4443e6b8efded5a7a68e9640d41a399ecde | |
parent | 8934ce865c06df5d9fd405b55798c98fa4b6b1b0 (diff) |
broadband-bearer: Save profile ID upon successful connection
Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
-rw-r--r-- | src/mm-broadband-bearer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index 0a4f7477..3ab075e2 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -876,6 +876,11 @@ connect_succeeded (GTask *task, self->priv->port = g_object_ref (mm_bearer_connect_result_peek_data (result)); self->priv->connection_type = connection_type; + /* Save profile ID for 3GPP connections. This is required for cases where + * the standard profile selection of this class is not executed during + * connection, e.g. if a derived class implements their own connect_3gpp. */ + self->priv->profile_id = mm_bearer_connect_result_get_profile_id (result); + /* Port is connected; update the state. For ATD based connections, the port * may already be set as connected, but no big deal. */ mm_port_set_connected (self->priv->port, TRUE); |