From: Jouni Malinen Date: Fri, 4 Feb 2022 19:26:24 +0000 (+0200) Subject: Clear ignore_old_scan_res on FLUSH command X-Git-Tag: hostap_2_11~2247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632a9995c8f92f8d8e8a4ca9639088a09c8213c2;p=thirdparty%2Fhostap.git 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 --- 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; }