diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-13 14:08:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-12-26 10:12:11 +0100 |
commit | 853aa29be80ee397f64d18c4d9cce64be35aec14 (patch) | |
tree | cca7f1a813e979b42e8ecacd156102e8e751ef20 /src/mm-base-bearer.c | |
parent | 0d0ad722d9da2039ad71ece9c8ae4b1786c7f757 (diff) |
iface-modem-3gpp-profile-manager: support 'apn-type' as index field
The modem may report the 'apn-type' field is the one to be used as
index; if that's the case, allow setting and deleting profiles based
on the given 'apn-type' field.
This change also makes the internal profile management operations use
one index field or another, based on what the protocol implements.
Diffstat (limited to 'src/mm-base-bearer.c')
-rw-r--r-- | src/mm-base-bearer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c index cd6365ac..a6b5c65f 100644 --- a/src/mm-base-bearer.c +++ b/src/mm-base-bearer.c @@ -1427,6 +1427,15 @@ mm_base_bearer_get_profile_id (MMBaseBearer *self) return mm_gdbus_bearer_get_profile_id (MM_GDBUS_BEARER (self)); } +MMBearerApnType +mm_base_bearer_get_apn_type (MMBaseBearer *self) +{ + /* when none explicitly requested, apn type always defaults to internet */ + return (self->priv->config ? + mm_bearer_properties_get_apn_type (self->priv->config) : + MM_BEARER_APN_TYPE_DEFAULT); +} + /*****************************************************************************/ static void |