Commit 8284a62c authored by Dan Williams's avatar Dan Williams
Browse files

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
parent d5c549dc
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
2005-03-24 Dan Williams <dcbw@redhat.com>
* test/nmtest.c
......
......@@ -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);
......
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