]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: OCV on 2.4 GHz with PMF getting enabled automatically
authorJouni Malinen <j@w1.fi>
Sun, 11 Aug 2019 13:06:49 +0000 (16:06 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Aug 2019 13:37:48 +0000 (16:37 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ocv.py

index d3ab804b5cb8ce8eed6ec1c8bd7b2816ea08caf5..176e17faf8947e63c2d9e2245404f85986aeba2a 100644 (file)
@@ -892,3 +892,14 @@ def test_wpa2_ocv_sta_group_hs(dev, apdev):
     conn.msg = recv_eapol(dev[0])
     if conn.msg["rsn_key_info"] != 0x0302:
         raise Exception("Didn't receive 2/2 of group key handshake")
+
+def test_wpa2_ocv_auto_enable_pmf(dev, apdev):
+    """OCV on 2.4 GHz with PMF getting enabled automatically"""
+    params = {"channel": "1",
+              "ocv": "1"}
+    hapd, ssid, passphrase = ocv_setup_ap(apdev[0], params)
+    for ocv in range(2):
+        dev[0].connect(ssid, psk=passphrase, scan_freq="2412", ocv=str(ocv),
+                       ieee80211w="2")
+        dev[0].request("REMOVE_NETWORK all")
+        dev[0].wait_disconnected()