diff options
author | Dan Williams <dcbw@redhat.com> | 2012-07-17 09:07:40 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-07-17 09:09:07 -0500 |
commit | d09375e08e4234ae87c5a1af5e5cbcdc84771742 (patch) | |
tree | fc84ce8a68ed2cfdbcf1b26cd53dbe552b5efe82 | |
parent | 3270ecf647576ab7aad9127af03ad460a07f1b4f (diff) |
core: ignore unsupported qmi_wwan ports (rh #835153)
These ports require QMI commands to start, and MM < 0.7 doesn't
support QMI, so we can't use these yet. They get recognized as
ether ports, but since we can't drive them as ether ports yet,
wierd things happen.
-rw-r--r-- | src/mm-plugin-base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index c4b514bb..84aa6bb8 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -1351,6 +1351,12 @@ supports_port (MMPlugin *plugin, if (!driver) goto out; + /* Hack for QMI-based ethernet interfaces: we don't support them yet */ + if (g_strcmp0 (driver, "qmi_wwan") == 0 || g_strcmp0 (driver, "qmi-wwan") == 0) { + mm_dbg ("(%s/%s): QMI WWAN port found but unsupported, ignoring...", subsys, name); + goto out; + } + task = supports_task_new (self, port, physdev_path, driver, callback, callback_data); g_assert (task); g_hash_table_insert (priv->tasks, g_strdup (key), g_object_ref (task)); |