]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Maintain maximum blacklist count over list clear operations
authorJouni Malinen <j@w1.fi>
Sun, 25 Nov 2012 14:20:44 +0000 (16:20 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 25 Nov 2012 14:20:44 +0000 (16:20 +0200)
commitf1a526338916ce4dc81bcab922b80911ae108d1c
tree0ee636151f11028a1b2261b22d4c92154705474f
parent4115303bbe77ff0db40b489af92f47fc5ea2c9ad
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>
wpa_supplicant/blacklist.c
wpa_supplicant/ctrl_iface.c
wpa_supplicant/dbus/dbus_new_handlers.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h