]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear scan cache in wifi_display_parsing
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 29 Aug 2024 17:21:31 +0000 (20:21 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 29 Aug 2024 17:21:31 +0000 (20:21 +0300)
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 <quic_jouni@quicinc.com>
tests/hwsim/test_p2p_wifi_display.py

index c235181a6fcf234dc78463420e8337660e040474..7daf7b93aa023196c22ae7c713bc74a33ab048c1 100644 (file)
@@ -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: