3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

device: Set autoconnect only if triggered via D-Bus

This commit is contained in:
Denis Kenzior 2018-08-18 00:41:25 -05:00
parent b7fd5023f0
commit f6eb571b67

View File

@ -1589,7 +1589,6 @@ static void device_connect_cb(struct netdev *netdev, enum netdev_result result,
network_connected(device->connected_network); network_connected(device->connected_network);
device_enter_state(device, DEVICE_STATE_CONNECTED); device_enter_state(device, DEVICE_STATE_CONNECTED);
device->autoconnect = true;
} }
static void device_signal_agent_notify(struct signal_agent *agent, 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->connect_pending = l_dbus_message_ref(message);
device->autoconnect = true;
} }
static void device_scan_triggered(int err, void *user_data) static void device_scan_triggered(int err, void *user_data)