mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 14:40:21 +01:00
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:
parent
66e9b63130
commit
68c498246d
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue