mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
network: Add network_connect_failed
This commit is contained in:
parent
dcadf4d2f8
commit
ad722cf004
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user