From: Jouni Malinen Date: Wed, 14 Aug 2019 14:51:31 +0000 (+0300) Subject: tests: SAE and PMKSA caching (PMKID in AssocReq after SAE) X-Git-Tag: hostap_2_10~2471 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6fe6e8b5ab11bae07df25f722fa2eb35cef81fb;p=thirdparty%2Fhostap.git tests: SAE and PMKSA caching (PMKID in AssocReq after SAE) Signed-off-by: Jouni Malinen --- 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",