From: Jouni Malinen Date: Tue, 15 Feb 2022 11:06:36 +0000 (+0200) Subject: tests: Make FILS BSS result checks more robust X-Git-Tag: hostap_2_11~2235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db7f14c825ab49dcc0b171e717202151d0622a64;p=thirdparty%2Fhostap.git tests: Make FILS BSS result checks more robust These can fail if the scan results from the previous test case remain, e.g., when run immediately after scan_bss_limit. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_fils.py b/tests/hwsim/test_fils.py index 4dcbcf6be..ccb33839a 100644 --- a/tests/hwsim/test_fils.py +++ b/tests/hwsim/test_fils.py @@ -38,6 +38,7 @@ def test_fils_sk_full_auth(dev, apdev, params): params['wpa_group_rekey'] = '1' hapd = hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq=2412) bss = dev[0].get_bss(bssid) logger.debug("BSS: " + str(bss)) @@ -86,6 +87,7 @@ def test_fils_sk_sha384_full_auth(dev, apdev, params): params['wpa_group_rekey'] = '1' hapd = hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq=2412) bss = dev[0].get_bss(bssid) logger.debug("BSS: " + str(bss)) @@ -567,6 +569,7 @@ def test_fils_sk_multiple_realms(dev, apdev, params): params['hessid'] = bssid hapd = hostapd.add_ap(apdev[0]['ifname'], params) + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq=2412) if "OK" not in dev[0].request("ANQP_GET " + bssid + " 275"):