From: Jouni Malinen Date: Thu, 29 Aug 2024 17:21:31 +0000 (+0300) Subject: tests: Clear scan cache in wifi_display_parsing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8625001ce51b6581ceb94ffed199220c8b2a1443;p=thirdparty%2Fhostap.git tests: Clear scan cache in wifi_display_parsing This is needed to avoid false failures if an old BSS entry is still present for dev[0]. This could happen, e.g., with the following test case sequence: wpas_mesh_max_peering wifi_display_parsing Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_wifi_display.py b/tests/hwsim/test_p2p_wifi_display.py index c235181a6..7daf7b93a 100644 --- a/tests/hwsim/test_p2p_wifi_display.py +++ b/tests/hwsim/test_p2p_wifi_display.py @@ -428,6 +428,7 @@ def _test_wifi_display_parsing(dev): dev[1].p2p_connect_group(dev[0].p2p_dev_addr(), pin, timeout=60, social=True, freq=2412) bssid = dev[0].get_group_status_field('bssid') + dev[2].flush_scan_cache() dev[2].scan_for_bss(bssid, freq=2412, force_scan=True) bss = dev[2].get_bss(bssid) if 'wfd_subelems' not in bss: