device: look for vendor/product ID on the grandparent for MBIM devices

This commit is contained in:
Aleksander Morgado
2013-04-17 15:23:24 +02:00
parent 56387bb79c
commit f8e7f2ebe1
+3 -2
View File
@@ -145,8 +145,9 @@ get_device_ids (GUdevDevice *device,
success = TRUE;
goto out;
} else if (g_str_has_prefix (parent_subsys, "usb") &&
!g_strcmp0 (g_udev_device_get_driver (parent), "qmi_wwan")) {
/* Need to look for vendor/product in the parent of the QMI device */
(!g_strcmp0 (g_udev_device_get_driver (parent), "qmi_wwan") ||
!g_strcmp0 (g_udev_device_get_driver (parent), "cdc_mbim"))) {
/* Need to look for vendor/product in the parent of the QMI/MBIM device */
GUdevDevice *qmi_parent;
qmi_parent = g_udev_device_get_parent (parent);