From: Jouni Malinen Date: Sat, 30 Nov 2024 09:51:44 +0000 (+0200) Subject: tests: Make autogo_interworking more robust X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05988387dcb73d113f9c70a1fa1a5334949e3ff7;p=thirdparty%2Fhostap.git tests: Make autogo_interworking more robust 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 --- diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 06be70f16..744c41466 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -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()