From 1e602adabb3771449a6b80126289172b1e75ad3e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 20 Nov 2022 11:07:32 +0200 Subject: [PATCH] tests: Add PMKSA cache entry again in dpp_akm_sha* This is going to be needed once wpa_supplicant starts dropping the PMKSA cache entry on status code 53 (invalid PMKID) rejection of association. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 136c39dd2..c4c3572d0 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -1618,6 +1618,9 @@ def run_dpp_akm(dev, apdev, pmk_len): if "OK" not in hapd.request(cmd): raise Exception("PMKSA_ADD failed (hostapd)") + cmd = "PMKSA_ADD %d %s %s %s 30240 43200 %d 0" % (id, bssid, pmkid, pmk, akmp) + if "OK" not in dev[0].request(cmd): + raise Exception("PMKSA_ADD failed (wpa_supplicant)") dev[0].select_network(id, freq="2412") dev[0].wait_connected() val = dev[0].get_status_field("key_mgmt")