]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear scan cache in ap_hs20_anqp_invalid_gas_response
authorJouni Malinen <j@w1.fi>
Sat, 20 Apr 2024 09:27:03 +0000 (12:27 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Apr 2024 15:31:11 +0000 (18:31 +0300)
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 <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index c1aebaa854c9c5f52ac6b5ecee2f490e4666b231..9cf2d904046452b82f90ebda6eda5a8638ecf228 100644 (file)
@@ -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")