From b6fe6e8b5ab11bae07df25f722fa2eb35cef81fb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 14 Aug 2019 17:51:31 +0300 Subject: [PATCH] tests: SAE and PMKSA caching (PMKID in AssocReq after SAE) Signed-off-by: Jouni Malinen --- tests/hwsim/test_sae.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 8ebf7d163..8824ad4c6 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",