aboutsummaryrefslogtreecommitdiff
path: root/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-03-04 15:59:24 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-03-04 18:03:28 +0100
commit5d176a1e61df603b74434dce9050f7a9d3139f13 (patch)
tree96b04256d2b9bfd99d41dfc514a59a39dd408edd /plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c
parentb509229d5747434be06e17af26c33fd8072a55f9 (diff)
base-modem: explicitly say if NET or TTY data ports are supported
A modem that creates exclusively bearer objects that work with NET ports (e.g. all QMI or MBIM modems) must not add any TTY port in the list of data ports. A modem that creates exclusively bearer objects that work with TTY ports (e.g. the generic modem) must not add any NET port in the list of data ports. A modem that may use both TTY and NET ports should add all in the list of data ports. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/324 Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/329
Diffstat (limited to 'plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c')
-rw-r--r--plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c b/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c
index 02569037..6adc6336 100644
--- a/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c
+++ b/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c
@@ -116,6 +116,9 @@ mm_broadband_modem_qmi_qcom_soc_new (const gchar *device,
MM_BASE_MODEM_PLUGIN, plugin,
MM_BASE_MODEM_VENDOR_ID, vendor_id,
MM_BASE_MODEM_PRODUCT_ID, product_id,
+ /* QMI bearer supports NET only */
+ MM_BASE_MODEM_DATA_NET_SUPPORTED, TRUE,
+ MM_BASE_MODEM_DATA_TTY_SUPPORTED, FALSE,
NULL);
}