summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-09-05 16:26:52 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-10 18:47:35 +0200
commit4f451cf76737acd66d7ba3842a5fcf483723d0be (patch)
treecc1ce208819398443bcd37c82cc1498193cfed5d
parentf7776a3784fc58c8d46034d5f53dd16518d31f65 (diff)
downloadModemManager-4f451cf76737acd66d7ba3842a5fcf483723d0be.tar.gz
qmi-port: use the new qmi-proxy if available
-rw-r--r--src/mm-qmi-port.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-qmi-port.c b/src/mm-qmi-port.c
index a26fdaba9..02ef09fe3 100644
--- a/src/mm-qmi-port.c
+++ b/src/mm-qmi-port.c
@@ -216,6 +216,12 @@ qmi_device_new_ready (GObject *unused,
GError *error = NULL;
QmiDeviceOpenFlags flags = QMI_DEVICE_OPEN_FLAGS_VERSION_INFO;
+ /* If possible, try to open the QMI port through the QMI proxy daemon, which
+ * allows other applications to also talk to the QMI port properly. */
+#if QMI_CHECK_VERSION (1,7,0)
+ flags |= QMI_DEVICE_OPEN_FLAGS_PROXY;
+#endif
+
ctx->self->priv->qmi_device = qmi_device_new_finish (res, &error);
if (!ctx->self->priv->qmi_device) {
g_simple_async_result_take_error (ctx->result, error);