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:
Dan Williams
2005-03-24 18:56:23 +00:00
parent d5c549dc55
commit 8284a62c39
2 changed files with 11 additions and 3 deletions

View File

@@ -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);