qmi-port: use the new qmi-proxy if available

This commit is contained in:
Aleksander Morgado
2013-09-10 18:47:35 +02:00
parent f7776a3784
commit 4f451cf767
+6
View File
@@ -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);