wiphy: Use network_connect_failed

This commit is contained in:
Denis Kenzior 2016-05-16 15:45:07 -05:00
parent ad722cf004
commit cefba4d735
1 changed files with 1 additions and 8 deletions

View File

@ -1237,14 +1237,7 @@ static void mlme_disconnect_event(struct l_genl_msg *msg,
dbus_pending_reply(&netdev->connect_pending,
dbus_error_failed(netdev->connect_pending));
/*
* Connection failed, if PSK try asking for the passphrase
* once more
*/
if (network->security == SECURITY_PSK) {
network->update_psk = false;
network->ask_psk = true;
}
network_connect_failed(network);
}
netdev_disassociated(netdev);