3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-20 12:39:25 +01:00

device: honor autoconnect in device_disassociated

This commit is contained in:
Denis Kenzior 2016-10-10 15:38:03 -05:00
parent 8242e9b9aa
commit e7e6326179

View File

@ -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)