From: Cedric Jehasse <cedric.jeha...@softathome.com>

cdc_wdm device doesn't have ID_VENDOR_ID and ID_MODEL_ID properties,
read these properties from the parent usb_device.
---
 plugins/udevng.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index afb02ca..7d7f4f6 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -1035,8 +1035,10 @@ static void check_usb_device(struct udev_device *device)
                        }
                }
 
-               vid = udev_device_get_property_value(device, "ID_VENDOR_ID");
-               pid = udev_device_get_property_value(device, "ID_MODEL_ID");
+               vid = udev_device_get_property_value(usb_device,
+                               "ID_VENDOR_ID");
+               pid = udev_device_get_property_value(usb_device,
+                               "ID_MODEL_ID");
 
                DBG("%s [%s:%s]", drv, vid, pid);
 
-- 
1.7.9.5

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to