2005-03-24 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c - (nm_get_device_driver_name): driver names are now on the parents of "Network Interface" objects, so look for them there git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@509 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -292,10 +292,12 @@ char *nm_get_device_driver_name (LibHalContext *ctx, NMDevice *dev)
|
||||
g_return_val_if_fail (ctx != NULL, NULL);
|
||||
g_return_val_if_fail (dev != NULL, NULL);
|
||||
|
||||
if ( (udi = nm_device_get_udi (dev))
|
||||
&& libhal_device_property_exists (ctx, udi, "net.linux.driver", NULL))
|
||||
if ((udi = nm_device_get_udi (dev)))
|
||||
{
|
||||
driver_name = libhal_device_get_property_string (ctx, udi, "net.linux.driver", NULL);
|
||||
char *parent_udi = libhal_device_get_property_string (ctx, udi, "info.parent", NULL);
|
||||
|
||||
if (parent_udi && libhal_device_property_exists (ctx, parent_udi, "info.linux.driver", NULL))
|
||||
driver_name = libhal_device_get_property_string (ctx, parent_udi, "info.linux.driver", NULL);
|
||||
}
|
||||
|
||||
return (driver_name);
|
||||
|
Reference in New Issue
Block a user