]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: FT and prepending PMKR1NAme to EAPOL-Key msg 2/4
authorJouni Malinen <j@w1.fi>
Sat, 3 Feb 2024 18:13:25 +0000 (20:13 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 3 Feb 2024 18:58:01 +0000 (20:58 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ft.py

index e791ed345869d35280f34144cf5d8e03f27ff7a7..3d07d21f7e6b27db4bfb0230eee26d5fd4481fd5 100644 (file)
@@ -1494,6 +1494,17 @@ def test_ap_ft_sae_pmksa_caching_pwe(dev, apdev):
 
 def test_ap_ft_sae_pmksa_caching_h2e(dev, apdev):
     """WPA2-FT-SAE AP and PMKSA caching for initial mobility domain association (H2E)"""
+    run_ap_ft_sae_pmksa_caching_h2e(dev, apdev)
+
+def test_ap_ft_sae_pmksa_caching_h2e_prepend_pmkid(dev, apdev):
+    """FT-SAE and PMKSA caching for initial mobility domain association (H2E, prepend PMKID)"""
+    try:
+        dev[0].set("ft_prepend_pmkid", "1")
+        run_ap_ft_sae_pmksa_caching_h2e(dev, apdev)
+    finally:
+        dev[0].set("ft_prepend_pmkid", "0")
+
+def run_ap_ft_sae_pmksa_caching_h2e(dev, apdev):
     check_sae_capab(dev[0])
     ssid = "test-ft"
     passphrase = "12345678"