]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear scan cache at the end of ap_wps_cancel
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 14 Feb 2022 22:02:34 +0000 (00:02 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 14 Feb 2022 22:02:34 +0000 (00:02 +0200)
This is needed to avoid leaving behind a BSS entry with WPS enabled for
the next text case in some cases. In particular, this was causing issues
in the following sequence of test cases:
ap_wps_conf_chan14 ap_wps_cancel ap_wps_pin_request_file

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_wps.py

index 62972ac703fd0579ac03b8c3a5991f7e9af3b256..4a15604b6405a502b536f0088ab5d1496cb42e35 100644 (file)
@@ -1145,6 +1145,7 @@ def test_ap_wps_cancel(dev, apdev):
     bss = dev[0].get_bss(apdev[0]['bssid'])
     if "[WPS-AUTH]" in bss['flags']:
         raise Exception("WPS-AUTH flag not cleared")
+    dev[0].flush_scan_cache()
 
 def test_ap_wps_er_add_enrollee(dev, apdev):
     """WPS ER configuring AP and adding a new enrollee using PIN"""