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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
b7963348cd
commit
8625001ce5
1 changed files with 1 additions and 0 deletions
|
@ -428,6 +428,7 @@ def _test_wifi_display_parsing(dev):
|
||||||
dev[1].p2p_connect_group(dev[0].p2p_dev_addr(), pin, timeout=60,
|
dev[1].p2p_connect_group(dev[0].p2p_dev_addr(), pin, timeout=60,
|
||||||
social=True, freq=2412)
|
social=True, freq=2412)
|
||||||
bssid = dev[0].get_group_status_field('bssid')
|
bssid = dev[0].get_group_status_field('bssid')
|
||||||
|
dev[2].flush_scan_cache()
|
||||||
dev[2].scan_for_bss(bssid, freq=2412, force_scan=True)
|
dev[2].scan_for_bss(bssid, freq=2412, force_scan=True)
|
||||||
bss = dev[2].get_bss(bssid)
|
bss = dev[2].get_bss(bssid)
|
||||||
if 'wfd_subelems' not in bss:
|
if 'wfd_subelems' not in bss:
|
||||||
|
|
Loading…
Reference in a new issue