mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
2007-08-12 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c - (nm_policy_device_change_check): fix policy to deactivate old device before activating new one, at least until the multiple active device support lands git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2668 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
b7df56d512
commit
931927a723
2 changed files with 19 additions and 7 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2007-08-12 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerPolicy.c
|
||||
- (nm_policy_device_change_check): fix policy to deactivate old device
|
||||
before activating new one, at least until the multiple active
|
||||
device support lands
|
||||
|
||||
2007-08-12 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerPolicy.c
|
||||
|
|
|
|||
|
|
@ -290,7 +290,6 @@ nm_policy_device_change_check (gpointer user_data)
|
|||
} else if (old_dev && !new_dev) {
|
||||
/* Terminate current connection */
|
||||
nm_info ("SWITCH: terminating current connection '%s' because it's no longer valid.", nm_device_get_iface (old_dev));
|
||||
nm_device_interface_deactivate (NM_DEVICE_INTERFACE (old_dev));
|
||||
do_switch = TRUE;
|
||||
} else if (old_dev && new_dev) {
|
||||
NMActRequest * old_act_req = nm_device_get_act_request (old_dev);
|
||||
|
|
@ -359,13 +358,19 @@ nm_policy_device_change_check (gpointer user_data)
|
|||
}
|
||||
}
|
||||
|
||||
if (do_switch && new_dev) {
|
||||
NMConnection *connection;
|
||||
if (do_switch) {
|
||||
if (old_dev) {
|
||||
nm_device_interface_deactivate (NM_DEVICE_INTERFACE (old_dev));
|
||||
}
|
||||
|
||||
connection = create_connection (new_dev, ap);
|
||||
if (connection)
|
||||
nm_device_interface_activate (NM_DEVICE_INTERFACE (new_dev),
|
||||
connection, FALSE);
|
||||
if (new_dev) {
|
||||
NMConnection *connection;
|
||||
|
||||
connection = create_connection (new_dev, ap);
|
||||
if (connection)
|
||||
nm_device_interface_activate (NM_DEVICE_INTERFACE (new_dev),
|
||||
connection, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
if (ap)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue