From 6abf7c0419fce6c112d895c38ae234ae4574f600 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Feb 2021 21:07:55 +0200 Subject: [PATCH] tests: wpa_deny_ptk0_rekey in hostapd GET_CONFIG Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_psk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index db10377a4..7b623af17 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -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"])