aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-10 17:00:47 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-11 10:45:08 (GMT)
commit6e374bd44d43795c1b9104d6886d9a0f5770f2bf (patch)
tree354aa53ac7f841f5f76e04f32def41d0827ba437 /wpa_supplicant/events.c
parent79124c7ba15b681216cca308951ac6830321171d (diff)
downloadhostap-6e374bd44d43795c1b9104d6886d9a0f5770f2bf.zip
hostap-6e374bd44d43795c1b9104d6886d9a0f5770f2bf.tar.gz
hostap-6e374bd44d43795c1b9104d6886d9a0f5770f2bf.tar.bz2
Ignore scan results from ongoing scan when FLUSH command is issued
This makes wpa_supplicant behavior more consistent with FLUSH command to clear all state. Previously, it was possible for an ongoing scan to be aborted when the FLUSH command is issued and the scan results from that aborted scan would still be processed and that would update the BSS table which was supposed to cleared by the FLUSH command. This could result in hwsim test case failures due to unexpected BSS table entries being present after the FLUSH command. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 67438e5..a57b1da 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1966,6 +1966,8 @@ int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s)
#else /* CONFIG_NO_SCAN_PROCESSING */
struct os_reltime now;
+ wpa_s->ignore_post_flush_scan_res = 0;
+
if (wpa_s->last_scan_res_used == 0)
return -1;