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.
This commit is contained in:
Eric Caruso
2019-09-17 15:00:38 -07:00
parent a9797f44ae
commit 59e82b3f32

View File

@@ -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;