From e7e6326179b02a892c5c457c8b54bb0c3d027a48 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 10 Oct 2016 15:38:03 -0500 Subject: [PATCH] device: honor autoconnect in device_disassociated --- src/device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index e4c6a7a4..4d6f2956 100644 --- a/src/device.c +++ b/src/device.c @@ -533,7 +533,10 @@ static void device_disassociated(struct device *device) IWD_NETWORK_INTERFACE, "Connected"); } - device_enter_state(device, DEVICE_STATE_AUTOCONNECT); + device_enter_state(device, DEVICE_STATE_DISCONNECTED); + + if (device->autoconnect) + device_enter_state(device, DEVICE_STATE_AUTOCONNECT); } static void device_lost_beacon(struct device *device)