info.linux.driver is on the physical device, not the network device's parent.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1016 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -136,15 +136,15 @@ static char *nm_get_device_driver_name (NMDevice *dev)
|
|||||||
|
|
||||||
if ((udi = nm_device_get_udi (dev)))
|
if ((udi = nm_device_get_udi (dev)))
|
||||||
{
|
{
|
||||||
char *parent_udi = libhal_device_get_property_string (ctx, udi, "info.parent", NULL);
|
char *physdev_udi = libhal_device_get_property_string (ctx, udi, "net.physical_device", NULL);
|
||||||
|
|
||||||
if (parent_udi && libhal_device_property_exists (ctx, parent_udi, "info.linux.driver", NULL))
|
if (physdev_udi && libhal_device_property_exists (ctx, physdev_udi, "info.linux.driver", NULL))
|
||||||
{
|
{
|
||||||
char *drv = libhal_device_get_property_string (ctx, parent_udi, "info.linux.driver", NULL);
|
char *drv = libhal_device_get_property_string (ctx, physdev_udi, "info.linux.driver", NULL);
|
||||||
driver_name = g_strdup (drv);
|
driver_name = g_strdup (drv);
|
||||||
g_free (drv);
|
g_free (drv);
|
||||||
}
|
}
|
||||||
g_free (parent_udi);
|
g_free (physdev_udi);
|
||||||
}
|
}
|
||||||
|
|
||||||
return driver_name;
|
return driver_name;
|
||||||
|
Reference in New Issue
Block a user