From: Jouni Malinen Date: Wed, 20 Mar 2024 16:13:08 +0000 (+0200) Subject: tests: Clear scan cache for SAE-EXT-KEY tests X-Git-Tag: hostap_2_11~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b83797a3eb591fd83349ca8f152038edf2b09840;p=thirdparty%2Fhostap.git tests: Clear scan cache for SAE-EXT-KEY tests These test cases check the BSS entry information and if the kernel scan cache maintains an old BSS entry for a previous test case for the same BSSID this can result in a false failure. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index b3837d6ac..aceb92751 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -2910,6 +2910,7 @@ def run_sae_ext_key(dev, apdev, group, cipher="CCMP", group_cipher="CCMP"): if key_mgmt.split(' ')[0] != "SAE-EXT-KEY": raise Exception("Unexpected GET_CONFIG(key_mgmt): " + key_mgmt) + dev[0].flush_scan_cache() dev[0].set("sae_groups", str(group)) id = dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE-EXT-KEY", pairwise=cipher, group=group_cipher,