port-qmi: always use QMI proxy

We already require libqmi > 1.7.0 in the build.
This commit is contained in:
Aleksander Morgado
2014-12-30 12:43:14 +01:00
parent 0dd707a279
commit 35575ccc15
+1 -7
View File
@@ -214,13 +214,7 @@ qmi_device_new_ready (GObject *unused,
PortOpenContext *ctx)
{
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
QmiDeviceOpenFlags flags = (QMI_DEVICE_OPEN_FLAGS_VERSION_INFO | QMI_DEVICE_OPEN_FLAGS_PROXY);
ctx->self->priv->qmi_device = qmi_device_new_finish (res, &error);
if (!ctx->self->priv->qmi_device) {