]> git.ipfire.org Git - thirdparty/hostap.git/commit
Use minimal scan delay upon EVENT_INTERFACE_ADDED
authorArend van Spriel <arend@broadcom.com>
Wed, 15 Jan 2014 09:11:33 +0000 (10:11 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 17 Jan 2014 09:50:31 +0000 (11:50 +0200)
commita0e9d89203d9dfdf80fc807327b05a0bb4d355c7
tree2ad16f8ade43d4a5e3c5d7b37bfcb867d03e3ebf
parent5ddd07cb37811718e21f9ab2611d3dcdc554f4b9
Use minimal scan delay upon EVENT_INTERFACE_ADDED

This patch resets the static interface_count to zero in case of
wpa_supplicant_driver_init() call for wpa_s which is in
INTERFACE_DISABLED state. This interface_count is used for the delay of
the scan which is now minimal for dynamically added interfaces. This may
collide with a scan for another interface, but the same is true for any
chosen delay in this scenario. Also the state change to DISCONNECTED is
moved to wpa_supplicant_driver_init() so it will move from
INTERFACE_DISABLED to INACTIVE when there are no enabled networks.

Tested-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant.c