huawei: Gobi devices should be driven by gobi not huawei (bgo #660998)

This commit is contained in:
Dan Williams
2011-10-12 18:47:23 -05:00
parent c61423f2cf
commit 6e0e46e51e
+6 -1
View File
@@ -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;