From d23362a679d8ddb6f67efe9131932522e9382f6a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Aug 2019 16:06:49 +0300 Subject: [PATCH] tests: OCV on 2.4 GHz with PMF getting enabled automatically Signed-off-by: Jouni Malinen --- tests/hwsim/test_ocv.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_ocv.py b/tests/hwsim/test_ocv.py index d3ab804b5..176e17faf 100644 --- a/tests/hwsim/test_ocv.py +++ b/tests/hwsim/test_ocv.py @@ -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()