From cdc8a92b37b6d6f9d4032e9910c88b46e6277581 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 13 Jan 2016 17:49:35 +0100 Subject: [PATCH] device: the unrealized devices can attempt to autoconnect --- src/devices/nm-device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 960be00216..3dbad5e109 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -2654,7 +2654,11 @@ nm_device_autoconnect_allowed (NMDevice *self) GValue instance = G_VALUE_INIT; GValue retval = G_VALUE_INIT; - if (priv->state < NM_DEVICE_STATE_DISCONNECTED || !priv->autoconnect) + if (!priv->autoconnect) + return FALSE; + + /* Unrealized devices can always autoconnect. */ + if (nm_device_is_real (self) && priv->state < NM_DEVICE_STATE_DISCONNECTED) return FALSE; /* The 'autoconnect-allowed' signal is emitted on a device to allow