From: Jouni Malinen Date: Sat, 20 Apr 2024 09:27:03 +0000 (+0300) Subject: tests: Clear scan cache in ap_hs20_anqp_invalid_gas_response X-Git-Tag: hostap_2_11~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42517eb3b0228bbe8e6ad94b4df92a0fedc38ecb;p=thirdparty%2Fhostap.git tests: Clear scan cache in ap_hs20_anqp_invalid_gas_response This is needed to avoid unexpected behavior if a previously executed test case has left a BSS entry with Interworking emabled into the case. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index c1aebaa85..9cf2d9040 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -5758,6 +5758,7 @@ def test_ap_hs20_anqp_invalid_gas_response(dev, apdev): params['hessid'] = bssid hapd = hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq="2412") hapd.set("ext_mgmt_frame_handling", "1")