Commit 68c49824 authored by Peter Jones's avatar Peter Jones

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
parent 66e9b631
......@@ -136,15 +136,15 @@ static char *nm_get_device_driver_name (NMDevice *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);
g_free (drv);
}
g_free (parent_udi);
g_free (physdev_udi);
}
return driver_name;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment