aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.c
diff options
context:
space:
mode:
authorEric Caruso <ejcaruso@chromium.org>2019-09-17 15:00:38 -0700
committerEric Caruso <ejcaruso@chromium.org>2019-09-17 15:08:03 -0700
commit59e82b3f32a35b351be8c4921e9092ad337aa1ea (patch)
tree6496ba13785cb1e6f6ed2ec925f73ad084b5c407 /src/mm-plugin.c
parenta9797f44aedac4dcbb6d57def2b8824068462605 (diff)
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.
Diffstat (limited to 'src/mm-plugin.c')
-rw-r--r--src/mm-plugin.c2
1 files changed, 1 insertions, 1 deletions
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;