From f6eb571b6749e658330c31357038902a4ed16908 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 18 Aug 2018 00:41:25 -0500 Subject: [PATCH] device: Set autoconnect only if triggered via D-Bus --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 8a0b0a97..6c1f042b 100644 --- a/src/device.c +++ b/src/device.c @@ -1589,7 +1589,6 @@ static void device_connect_cb(struct netdev *netdev, enum netdev_result result, network_connected(device->connected_network); device_enter_state(device, DEVICE_STATE_CONNECTED); - device->autoconnect = true; } static void device_signal_agent_notify(struct signal_agent *agent, @@ -1737,6 +1736,7 @@ void device_connect_network(struct device *device, struct network *network, } device->connect_pending = l_dbus_message_ref(message); + device->autoconnect = true; } static void device_scan_triggered(int err, void *user_data)