diff options
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r-- | src/mm-plugin.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mm-plugin.c b/src/mm-plugin.c index b3e85d7b..c7a58b77 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -820,7 +820,18 @@ mm_plugin_create_modem (MMPlugin *self, MM_CORE_ERROR_UNSUPPORTED, "unsupported subsystem: '%s'", mm_port_probe_get_port_subsys (probe)); - } else if (MM_PLUGIN_GET_CLASS (self)->grab_port) + } +#if !defined WITH_QMI + else if (mm_port_probe_get_port_type (probe) == MM_PORT_TYPE_NET && + g_str_equal (mm_device_utils_get_port_driver (mm_port_probe_peek_port (probe)), + "qmi_wwan")) { + grabbed = FALSE; + inner_error = g_error_new (MM_CORE_ERROR, + MM_CORE_ERROR_UNSUPPORTED, + "ignoring QMI net port"); + } +#endif + else if (MM_PLUGIN_GET_CLASS (self)->grab_port) grabbed = MM_PLUGIN_GET_CLASS (self)->grab_port (MM_PLUGIN (self), modem, probe, |