[PATCH] port-mbim: add missing guard for try_qmi_over_mbim in mm_port_mbim_open()

Ben Chan benchan at chromium.org
Wed Aug 22 00:27:48 UTC 2018


Fixes: c0cc694c67d9e71f200fb23e20473cc9b31d9ec0
---
 src/mm-port-mbim.c | 2 ++
 1 file changed, 2 insertions(+)

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,
-- 
2.18.0.1017.ga543ac7ca45-goog



More information about the ModemManager-devel mailing list