]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: wpa_deny_ptk0_rekey in hostapd GET_CONFIG
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 19:07:55 +0000 (21:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 20:31:58 +0000 (22:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_psk.py

index db10377a44aa5c4fd916e8a222dd3dc7f9bf23f0..7b623af1740589bdbe5e4299a96a05cc0c3a38d2 100644 (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"])