aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-08-21 17:27:48 -0700
committerAleksander Morgado <aleksander@aleksander.es>2018-08-22 17:21:24 +0200
commit2729b08696860ac790d8a5f726dcf8fa86fb51eb (patch)
tree498afcc2dc1d54fab65eb00be9e302460dd4cba8 /src
parent7c5cfa13a19c2c59d003c938283652f071e7004d (diff)
port-mbim: add missing guard for try_qmi_over_mbim in mm_port_mbim_open()
Fixes: c0cc694c67d9e71f200fb23e20473cc9b31d9ec0
Diffstat (limited to 'src')
-rw-r--r--src/mm-port-mbim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-port-mbim.c b/src/mm-port-mbim.c
index f48ebd8f..cd6d9f22 100644
--- a/src/mm-port-mbim.c
+++ b/src/mm-port-mbim.c
@@ -335,9 +335,11 @@ mm_port_mbim_open (MMPortMbim *self,
fullpath = g_strdup_printf ("/dev/%s", mm_port_get_device (MM_PORT (self)));
file = g_file_new_for_path (fullpath);
+#if WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
/* If we want to try QMI over MBIM, store the GFile as task data */
if (try_qmi_over_mbim)
g_task_set_task_data (task, g_object_ref (file), g_object_unref);
+#endif
self->priv->in_progress = TRUE;
mbim_device_new (file,