]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Clear ignore_old_scan_res on FLUSH command
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 4 Feb 2022 19:26:24 +0000 (21:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 4 Feb 2022 19:26:24 +0000 (21:26 +0200)
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 <quic_jouni@quicinc.com>
wpa_supplicant/ctrl_iface.c

index 88dd67ab02f7e3b2028eda598fc77836d6502585..ef87c8645cb041d94a1a1556275682a330941345 100644 (file)
@@ -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;
 }