Disable network temporarily on repeated connection failures
Previously, only explicit indications of authentication failures were used to disable a network block temporarily. Extend this to use multiple failed connection attempts as a sign of a possible authentication or authorization failure to reduce the frequency of connection attempts with a network that does not seem to allow connection. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
97279d8d1a
commit
dd57970477
1 changed files with 6 additions and 0 deletions
|
@ -3563,6 +3563,12 @@ void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid)
|
||||||
*/
|
*/
|
||||||
count += wpa_s->extra_blacklist_count;
|
count += wpa_s->extra_blacklist_count;
|
||||||
|
|
||||||
|
if (count > 3 && wpa_s->current_ssid) {
|
||||||
|
wpa_printf(MSG_DEBUG, "Continuous association failures - "
|
||||||
|
"consider temporary network disabling");
|
||||||
|
wpas_auth_failed(wpa_s);
|
||||||
|
}
|
||||||
|
|
||||||
switch (count) {
|
switch (count) {
|
||||||
case 1:
|
case 1:
|
||||||
timeout = 100;
|
timeout = 100;
|
||||||
|
|
Loading…
Reference in a new issue