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

Aleksander Morgado aleksander at aleksander.es
Wed Aug 22 15:22:04 UTC 2018


On 22/08/18 02:27, Ben Chan wrote:
> Fixes: c0cc694c67d9e71f200fb23e20473cc9b31d9ec0
> ---

Pushed, thanks

>  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,
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list