From: Jouni Malinen Date: Sun, 20 Nov 2022 09:07:32 +0000 (+0200) Subject: tests: Add PMKSA cache entry again in dpp_akm_sha* X-Git-Tag: hostap_2_11~1525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e602adabb3771449a6b80126289172b1e75ad3e;p=thirdparty%2Fhostap.git 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 --- 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")