diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2024-08-21 17:04:38 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2024-08-21 17:04:38 +0000 |
commit | 8ff4b3638f13402dd55e1c1b0ec7a2e069f5369b (patch) | |
tree | fc1bfedf21637864e149fee0508c13abca40b9f1 | |
parent | f62ff207bbe5a4940faa22d3b89e1016112f6b3f (diff) |
modem-helpers-qmi: map the DUN/tethering APN type
libqmi version is bumped to 1.35.6, which is the unstable tag that
includes the new symbols.
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | src/mm-modem-helpers-qmi.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 33b5e5ca..ac620b96 100644 --- a/meson.build +++ b/meson.build @@ -265,7 +265,7 @@ config_h.set('WITH_MBIM', enable_mbim) # QMI support (enabled by default) enable_qmi = get_option('qmi') if enable_qmi - qmi_glib_dep = dependency('qmi-glib', version: '>= 1.34.0') + qmi_glib_dep = dependency('qmi-glib', version: '>= 1.35.6') endif config_h.set('WITH_QMI', enable_qmi) diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c index 373e6d18..1cb91491 100644 --- a/src/mm-modem-helpers-qmi.c +++ b/src/mm-modem-helpers-qmi.c @@ -2373,6 +2373,8 @@ mm_bearer_apn_type_to_qmi_apn_type (MMBearerApnType apn_type, value |= QMI_WDS_APN_TYPE_MASK_IMS; if (apn_type & MM_BEARER_APN_TYPE_MMS) value |= QMI_WDS_APN_TYPE_MASK_MMS; + if (apn_type & MM_BEARER_APN_TYPE_TETHERING) + value |= QMI_WDS_APN_TYPE_MASK_DUN; if (apn_type & MM_BEARER_APN_TYPE_MANAGEMENT) value |= QMI_WDS_APN_TYPE_MASK_FOTA; if (apn_type & MM_BEARER_APN_TYPE_INITIAL) @@ -2393,6 +2395,8 @@ mm_bearer_apn_type_from_qmi_apn_type (QmiWdsApnTypeMask apn_type) value |= MM_BEARER_APN_TYPE_IMS; if (apn_type & QMI_WDS_APN_TYPE_MASK_MMS) value |= MM_BEARER_APN_TYPE_MMS; + if (apn_type & QMI_WDS_APN_TYPE_MASK_DUN) + value |= MM_BEARER_APN_TYPE_TETHERING; if (apn_type & QMI_WDS_APN_TYPE_MASK_FOTA) value |= MM_BEARER_APN_TYPE_MANAGEMENT; if (apn_type & QMI_WDS_APN_TYPE_MASK_IA) |