Commit b90aa807 authored by Dan Williams's avatar Dan Williams
Browse files

2005-03-22 Dan Williams <dcbw@redhat.com>

	* src/NetworkManager.c
		- (nm_wired_link_deactivated): actually ignore netlink events from
			wireless devices.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@504 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent a068f66a
2005-03-22 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
- (nm_wired_link_deactivated): actually ignore netlink events from
wireless devices.
2005-03-22 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
- (nm_wired_link_activated): actually ignore netlink events from
wireless devices.
2005-03-17 Dan Williams <dcbw@redhat.com>
Patch from Tom Parker:
......
......@@ -595,9 +595,6 @@ nm_wired_link_activated (NmNetlinkMonitor *monitor,
nm_policy_schedule_state_update (data);
}
}
else
nm_info ("unknown wired ethernet interface '%s' "
"activated\n", interface_name);
nm_unlock_mutex (data->dev_list_mutex, __FUNCTION__);
}
}
......@@ -607,17 +604,12 @@ nm_wired_link_deactivated (NmNetlinkMonitor *monitor,
const gchar *interface_name,
NMData *data)
{
NMDevice *device;
if (nm_try_acquire_mutex (data->dev_list_mutex, __FUNCTION__))
{
device = nm_get_device_by_iface (data, interface_name);
NMDevice *dev = nm_get_device_by_iface (data, interface_name);
if (device != NULL)
nm_device_set_link_active (device, FALSE);
else
nm_info ("unknown wired ethernet interface '%s' "
"deactivated\n", interface_name);
if ((dev != NULL) && nm_device_is_wired (dev))
nm_device_set_link_active (dev, FALSE);
nm_unlock_mutex (data->dev_list_mutex, __FUNCTION__);
}
}
......
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