From 5d176a1e61df603b74434dce9050f7a9d3139f13 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 4 Mar 2021 15:59:24 +0100 Subject: 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 --- plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c') 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); } -- cgit v1.2.3-70-g09d2