From c0907768f00ad9b3929d3063280ddfc9c983b287 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 10 Feb 2017 20:45:17 +0100 Subject: libqmi-glib,device: don't warn on mismatched driver if no_file_check --- src/libqmi-glib/qmi-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libqmi-glib/qmi-device.c b/src/libqmi-glib/qmi-device.c index ab3664a..d77deb2 100644 --- a/src/libqmi-glib/qmi-device.c +++ b/src/libqmi-glib/qmi-device.c @@ -2183,7 +2183,7 @@ device_open_context_step (DeviceOpenContext *ctx) /* MBIM mode requested? */ if (ctx->flags & QMI_DEVICE_OPEN_FLAGS_MBIM) { - if (g_strcmp0 (ctx->driver, "cdc_mbim")) + if (g_strcmp0 (ctx->driver, "cdc_mbim") && !ctx->self->priv->no_file_check) g_warning ("[%s] requested MBIM mode but unexpected driver found: %s", ctx->self->priv->path_display, ctx->driver); goto next_step; } -- cgit v1.1