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:
@@ -997,7 +997,7 @@ mm_plugin_create_modem (MMPlugin *self,
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (port_type == MM_PORT_TYPE_NET &&
|
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 */
|
/* 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);
|
mm_dbg ("(%s/%s): ignoring QMI net port as QMI support isn't available", subsys, name);
|
||||||
force_ignored = TRUE;
|
force_ignored = TRUE;
|
||||||
|
Reference in New Issue
Block a user