diff options
author | Dan Williams <dcbw@redhat.com> | 2011-10-12 18:47:23 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-10-12 18:47:23 -0500 |
commit | 6e0e46e51e9b022577db6adeb986d3241da9bd4d (patch) | |
tree | 16a4e06bf4faf66b6c5703b0f4ee90d4cbb0ec1e | |
parent | c61423f2cfb201a610a5708a7ea19175a2e20750 (diff) |
huawei: Gobi devices should be driven by gobi not huawei (bgo #660998)
-rw-r--r-- | plugins/mm-plugin-huawei.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mm-plugin-huawei.c b/plugins/mm-plugin-huawei.c index 285394b9..e6c02d47 100644 --- a/plugins/mm-plugin-huawei.c +++ b/plugins/mm-plugin-huawei.c @@ -133,7 +133,7 @@ supports_port (MMPluginBase *base, MMPluginBaseSupportsTask *task) { GUdevDevice *port; - const char *subsys, *name; + const char *subsys, *name, *driver; int usbif; guint16 vendor = 0, product = 0; @@ -151,6 +151,11 @@ supports_port (MMPluginBase *base, if (vendor != 0x12d1) return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + /* The Gobi driver should claim Huawei Gobi modems */ + driver = mm_plugin_base_supports_task_get_driver (task); + if (g_strcmp0 (driver, "qcserial") == 0) + return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; + usbif = g_udev_device_get_property_as_int (port, "ID_USB_INTERFACE_NUM"); if (usbif < 0) return MM_PLUGIN_SUPPORTS_PORT_UNSUPPORTED; |