aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-11-25 14:20:44 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-25 14:20:44 (GMT)
commitf1a526338916ce4dc81bcab922b80911ae108d1c (patch)
tree0ee636151f11028a1b2261b22d4c92154705474f /wpa_supplicant/dbus
parent4115303bbe77ff0db40b489af92f47fc5ea2c9ad (diff)
downloadhostap-f1a526338916ce4dc81bcab922b80911ae108d1c.zip
hostap-f1a526338916ce4dc81bcab922b80911ae108d1c.tar.gz
hostap-f1a526338916ce4dc81bcab922b80911ae108d1c.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index a0b7479..ce73667 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -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;