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:07:40 -0500 |
commit | 8b5985a99e1f5a05e1a194d54515bc3421035a6e (patch) | |
tree | 0a2bee4c3ca6022a5c636ad9764750ca58fe17b2 | |
parent | 40dc0dd9d9fa995ff6a86ccb7947ddd0c676858c (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 5248181e..8acfd080 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -1136,6 +1136,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)); |