From: Jouni Malinen Date: Sun, 28 Feb 2021 19:07:55 +0000 (+0200) Subject: tests: wpa_deny_ptk0_rekey in hostapd GET_CONFIG X-Git-Tag: hostap_2_10~495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6abf7c0419fce6c112d895c38ae234ae4574f600;p=thirdparty%2Fhostap.git tests: wpa_deny_ptk0_rekey in hostapd GET_CONFIG Signed-off-by: Jouni Malinen --- 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"])