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

network: Add network_connect_failed

This commit is contained in:
Denis Kenzior 2016-05-16 15:43:32 -05:00
parent dcadf4d2f8
commit ad722cf004
2 changed files with 14 additions and 0 deletions

View File

@ -340,6 +340,18 @@ int network_autoconnect(struct network *network, struct scan_bss *bss)
return 0; return 0;
} }
void network_connect_failed(struct network *network)
{
/*
* Connection failed, if PSK try asking for the passphrase
* once more
*/
if (network->security == SECURITY_PSK) {
network->update_psk = false;
network->ask_psk = true;
}
}
static struct scan_bss *network_select_bss(struct wiphy *wiphy, static struct scan_bss *network_select_bss(struct wiphy *wiphy,
struct network *network) struct network *network)
{ {

View File

@ -58,7 +58,9 @@ struct l_settings *network_get_settings(struct network *network);
bool network_settings_load(struct network *network); bool network_settings_load(struct network *network);
void network_settings_close(struct network *network); void network_settings_close(struct network *network);
void network_sync_psk(struct network *network); void network_sync_psk(struct network *network);
int network_autoconnect(struct network *network, struct scan_bss *bss); int network_autoconnect(struct network *network, struct scan_bss *bss);
void network_connect_failed(struct network *network);
bool network_register(struct network *network, const char *path); bool network_register(struct network *network, const char *path);