NetworkManager/src/devices
Dan Williams 4040198b47 core: queue re-activations to allow DEACTIVATING state
If a device is already activated, queue the new activation to allow
the transition through the DEACTIVATING state.

---

Also remove the "HACK" bits in nm_device_deactivate(). This hack was
added on 2007-09-25 in commit 9c2848d.  At the time, with user settings
services, if a client created a connection and requested that NM
activate it, NM may not have read the connection from the client over
D-Bus yet.  So NM created a "deferred" activation request which waited
until the connection was read from the client, and then began activation.

The Policy watched for device state changes and other events (like
it does now) and activated a new device if the old one was no longer
valid.  It specifically checked for deferred activations and then
did nothing.  However, when the client's connection was read, then
nm-device.c cleared the deferred activation bit, leading to a short
period of time where the device was in DISCONNECTED state but there
was no deferred activation, because the device only changes state to
PREPARE from the idle handler for stage1.  If other events happened
during this time, the policy would tear down the device that was
about to be activated. This early state transition to PREPARE
worked around that.

We need to remove it now though, because (a) the reason for its
existence is no longer valid, and (b) _device_activate() may now
be called from inside nm_device_state_changed() and thus it cannot
change to a new state inside the function.
2014-02-25 18:03:02 -06:00
..
wimax api/wimax: add Nsps (Network Service Providers) property 2014-01-23 17:34:12 -06:00
nm-device-adsl.c replace snprintf by g_snprintf 2014-02-24 21:35:33 +01:00
nm-device-adsl.h core: move carrier handling to NMDevice 2013-05-20 16:38:33 -03:00
nm-device-bond.c core: make assumed activations go through all the stages 2013-11-08 16:46:45 -06:00
nm-device-bond.h core: move software device creation logic out of NMManager 2013-09-12 18:34:23 -04:00
nm-device-bridge.c core: make assumed activations go through all the stages 2013-11-08 16:46:45 -06:00
nm-device-bridge.h core: support slave devices in nm_platform_generate_connection() 2013-11-08 16:46:43 -06:00
nm-device-bt.c mobile: only change state to NEED_AUTH during activation (rh #1058308) 2014-02-21 09:45:06 -06:00
nm-device-bt.h bluez: pass the NMBluezDevice down to the NMDeviceBt 2013-09-25 21:01:03 +02:00
nm-device-ethernet.c core: use nm_utils_get_monotonic_timestamp_s for nm-device-ethernet.c (last_pppoe_time) 2014-01-30 19:54:10 +01:00
nm-device-ethernet.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-factory.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-generic.c core: updating a Generic setting should set the interface name 2013-12-02 15:32:31 -06:00
nm-device-generic.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-gre.c core: fix segfault on initialization of macvlan and gre device 2013-08-22 20:40:53 +02:00
nm-device-gre.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-infiniband.c core: remove redundant sysctl utilities 2013-11-15 10:49:43 -05:00
nm-device-infiniband.h core: move software device creation logic out of NMManager 2013-09-12 18:34:23 -04:00
nm-device-macvlan.c core: fix segfault on initialization of macvlan and gre device 2013-08-22 20:40:53 +02:00
nm-device-macvlan.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-modem.c mobile: only change state to NEED_AUTH during activation (rh #1058308) 2014-02-21 09:45:06 -06:00
nm-device-modem.h core: make nm-properties-changed-signal always export the right properties 2013-05-20 16:38:33 -03:00
nm-device-olpc-mesh.c core: ensure all devices chain up to parent act_stage1_prepare 2013-10-31 14:15:08 -05:00
nm-device-olpc-mesh.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-private.h core: improve handling of NPAR/SR-IOV devices (rh #804527) 2013-11-06 10:26:16 -05:00
nm-device-team.c logging: tweak logging-enabled functions 2013-12-20 09:57:13 -05:00
nm-device-team.h core: support slave devices in nm_platform_generate_connection() 2013-11-08 16:46:43 -06:00
nm-device-tun.c core: make NMDeviceTun 'mode' immutable and set at construct time 2014-01-30 11:53:32 +01:00
nm-device-tun.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-veth.c devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-veth.h devices: make constructors take an NMPlatformLink 2013-06-05 17:49:25 -03:00
nm-device-vlan.c coverity: fix various warnings detected with Coverity (fixup) 2013-11-13 18:43:18 +01:00
nm-device-vlan.h core: move software device creation logic out of NMManager 2013-09-12 18:34:23 -04:00
nm-device-wifi.c wifi: indicate to the kernel when critical protocols start/stop (bgo #723241) 2014-01-31 14:34:55 -06:00
nm-device-wifi.h api/wifi: add AccessPoints property 2014-01-23 17:34:12 -06:00
nm-device.c core: queue re-activations to allow DEACTIVATING state 2014-02-25 18:03:02 -06:00
nm-device.h core: queue re-activations to allow DEACTIVATING state 2014-02-25 18:03:02 -06:00