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 <j@w1.fi>
This commit is contained in:
parent
f49b604555
commit
1e602adabb
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue