diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2019-09-17 15:00:38 -0700 |
---|---|---|
committer | Eric Caruso <ejcaruso@chromium.org> | 2019-09-17 15:08:03 -0700 |
commit | 59e82b3f32a35b351be8c4921e9092ad337aa1ea (patch) | |
tree | 6496ba13785cb1e6f6ed2ec925f73ad084b5c407 /src | |
parent | a9797f44aedac4dcbb6d57def2b8824068462605 (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')
-rw-r--r-- | src/mm-plugin.c | 2 |
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; |