]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add PMKSA cache entry again in dpp_akm_sha*
authorJouni Malinen <j@w1.fi>
Sun, 20 Nov 2022 09:07:32 +0000 (11:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Nov 2022 09:08:26 +0000 (11:08 +0200)
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 <j@w1.fi>
tests/hwsim/test_dpp.py

index 136c39dd29b1edbc8363d4630e6d0c67a2e16b46..c4c3572d042f858c97b936cea1d20f8915c6f310 100644 (file)
@@ -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")