]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make autogo_interworking more robust
authorJouni Malinen <quic_jouni@quicinc.com>
Sat, 30 Nov 2024 09:51:44 +0000 (11:51 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 30 Nov 2024 09:51:44 +0000 (11:51 +0200)
Clear scan cache to avoid issues with older BSS entries with the same
BSSID from causing test failures due to not finding the expected
Interworking element.

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

index 06be70f1629d3530b6f4ae0cc101806d82c0330f..744c41466fbeeb02bcb200dae65039ad0aa2ec62 100644 (file)
@@ -942,6 +942,7 @@ def run_autogo_interworking(dev):
     dev[0].global_request("SET go_venue_type 3")
     res = autogo(dev[0])
     bssid = dev[0].p2p_interface_addr()
+    dev[1].flush_scan_cache()
     dev[1].scan_for_bss(bssid, freq=res['freq'])
     bss = dev[1].get_bss(bssid)
     dev[0].remove_group()