From 632a9995c8f92f8d8e8a4ca9639088a09c8213c2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 4 Feb 2022 21:26:24 +0200 Subject: [PATCH] Clear ignore_old_scan_res on FLUSH command The hwsim test cases are trying to clear this parameter between test cases, but that was not really done correctly for many of the sigma_dut test cases. Instead of fixing the text scripts to do this more carefully, it seems to be simpler to just force the FLUSH command to clear this. Signed-off-by: Jouni Malinen --- wpa_supplicant/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 88dd67ab0..ef87c8645 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -8590,6 +8590,8 @@ static void wpa_supplicant_ctrl_iface_flush(struct wpa_supplicant *wpa_s) if (wpa_s->mac_addr_changed && wpa_s->conf->mac_addr == 0) wpas_restore_permanent_mac_addr(wpa_s); + + wpa_s->conf->ignore_old_scan_res = 0; }