tests: wpa_deny_ptk0_rekey in hostapd GET_CONFIG

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-02-28 21:07:55 +02:00
parent 0f51caa513
commit 6abf7c0419

View file

@ -232,6 +232,9 @@ def test_ap_wpa2_ptk_rekey_blocked_ap(dev, apdev):
params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase)
params['wpa_deny_ptk0_rekey'] = "2"
hapd = hostapd.add_ap(apdev[0], params)
conf = hapd.request("GET_CONFIG").splitlines()
if "wpa_deny_ptk0_rekey=2" not in conf:
raise Exception("wpa_deny_ptk0_rekey value not in GET_CONFIG")
dev[0].connect(ssid, psk=passphrase, wpa_ptk_rekey="1", scan_freq="2412")
ev = dev[0].wait_event(["WPA: Key negotiation completed",
"CTRL-EVENT-DISCONNECTED"])