aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-08-14 14:51:31 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-14 14:51:31 (GMT)
commitb6fe6e8b5ab11bae07df25f722fa2eb35cef81fb (patch)
tree44d426624ca35f224984b247a829a0b4e233bc73
parentd2b2083843911b361f365415b4e794543b594b8a (diff)
downloadhostap-b6fe6e8b5ab11bae07df25f722fa2eb35cef81fb.zip
hostap-b6fe6e8b5ab11bae07df25f722fa2eb35cef81fb.tar.gz
hostap-b6fe6e8b5ab11bae07df25f722fa2eb35cef81fb.tar.bz2
tests: SAE and PMKSA caching (PMKID in AssocReq after SAE)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_sae.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py
index 8ebf7d1..8824ad4 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -92,6 +92,18 @@ def test_sae_password_ffc(dev, apdev):
@remote_compatible
def test_sae_pmksa_caching(dev, apdev):
"""SAE and PMKSA caching"""
+ run_sae_pmksa_caching(dev, apdev)
+
+@remote_compatible
+def test_sae_pmksa_caching_pmkid(dev, apdev):
+ """SAE and PMKSA caching (PMKID in AssocReq after SAE)"""
+ try:
+ dev[0].set("sae_pmkid_in_assoc", "1")
+ run_sae_pmksa_caching(dev, apdev)
+ finally:
+ dev[0].set("sae_pmkid_in_assoc", "0")
+
+def run_sae_pmksa_caching(dev, apdev):
if "SAE" not in dev[0].get_capability("auth_alg"):
raise HwsimSkip("SAE not supported")
params = hostapd.wpa2_params(ssid="test-sae",