From: Jouni Malinen Date: Mon, 14 Feb 2022 22:02:34 +0000 (+0200) Subject: tests: Clear scan cache at the end of ap_wps_cancel X-Git-Tag: hostap_2_11~2239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781720fb1a6bb91b22072d8b9b1624a4667c3b11;p=thirdparty%2Fhostap.git tests: Clear scan cache at the end of ap_wps_cancel 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 --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 62972ac70..4a15604b6 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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"""