From 781720fb1a6bb91b22072d8b9b1624a4667c3b11 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 15 Feb 2022 00:02:34 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_ap_wps.py | 1 + 1 file changed, 1 insertion(+) 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"""