From 59e82b3f32a35b351be8c4921e9092ad337aa1ea Mon Sep 17 00:00:00 2001 From: Eric Caruso Date: Tue, 17 Sep 2019 15:00:38 -0700 Subject: mm-plugin: fix inverted condition in port grabbing If QMI support was not compiled in, then every net port that wasn't a QMI port would be force-ignored unless it had the qmi_wwan driver. Instead, we want to ignore ports with only the qmi_wwan driver. --- src/mm-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mm-plugin.c') diff --git a/src/mm-plugin.c b/src/mm-plugin.c index 8ef9e623..7150b037 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -997,7 +997,7 @@ mm_plugin_create_modem (MMPlugin *self, } #else if (port_type == MM_PORT_TYPE_NET && - g_strcmp0 (driver, "qmi_wwan") != 0) { + g_strcmp0 (driver, "qmi_wwan") == 0) { /* QMI net ports are ignored if QMI support not built */ mm_dbg ("(%s/%s): ignoring QMI net port as QMI support isn't available", subsys, name); force_ignored = TRUE; -- cgit v1.2.3-70-g09d2