]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear scan cache for SAE-EXT-KEY tests
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 20 Mar 2024 16:13:08 +0000 (18:13 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 20 Mar 2024 16:13:08 +0000 (18:13 +0200)
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 <quic_jouni@quicinc.com>
tests/hwsim/test_sae.py

index b3837d6ac3de1f8fbe648359e913136fe32c2eaa..aceb927516e636c3b90f654ef50c585c0e4dbb1a 100644 (file)
@@ -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,