3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

device: on connect error use network_connect_failed

This commit is contained in:
Denis Kenzior 2016-10-10 14:53:01 -05:00
parent 63e11979ee
commit 8242e9b9aa

View File

@ -591,8 +591,10 @@ static void device_connect_cb(struct netdev *netdev, enum netdev_result result,
}
if (result != NETDEV_RESULT_OK) {
if (result != NETDEV_RESULT_ABORTED)
if (result != NETDEV_RESULT_ABORTED) {
network_connect_failed(device->connected_network);
device_disassociated(device);
}
return;
}