Maintain maximum blacklist count over list clear operations
wpas_connection_failed() uses the blacklist count to figure out a suitable time to wait for the next scan. This mechanism did not work properly in cases where the temporary blacklist gets cleared due to no other BSSes being available. Address this by maintaining an additional count of blacklisting values over wpa_blacklist_clear() calls. In addition, add one more step in the count to timeout mapping to go to 10 second interval if more than four failures are seen. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4115303bbe
commit
f1a5263389
5 changed files with 35 additions and 1 deletions
|
@ -1455,6 +1455,7 @@ DBusMessage * wpas_dbus_handler_reassociate(DBusMessage *message,
|
|||
struct wpa_supplicant *wpa_s)
|
||||
{
|
||||
if (wpa_s->current_ssid != NULL) {
|
||||
wpa_s->extra_blacklist_count = 0;
|
||||
wpa_s->normal_scans = 0;
|
||||
wpa_supplicant_reinit_autoscan(wpa_s);
|
||||
wpa_s->disconnected = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue