aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-02-10 20:45:17 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-02-10 20:45:17 +0100
commitc0907768f00ad9b3929d3063280ddfc9c983b287 (patch)
tree2643224da6ddced8793468787c5b44e690921611
parent504dcdb8563921036d3d2588fb977a929c6305d8 (diff)
downloadexternal_libqmi-c0907768f00ad9b3929d3063280ddfc9c983b287.zip
external_libqmi-c0907768f00ad9b3929d3063280ddfc9c983b287.tar.gz
external_libqmi-c0907768f00ad9b3929d3063280ddfc9c983b287.tar.bz2
libqmi-glib,device: don't warn on mismatched driver if no_file_check
-rw-r--r--src/libqmi-glib/qmi-device.c2
1 files changed, 1 insertions, 1 deletions
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;
}