]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE and MFP enabled without sae_require_mfp
authorJouni Malinen <j@w1.fi>
Sun, 14 Oct 2018 17:14:30 +0000 (20:14 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Oct 2018 17:14:30 +0000 (20:14 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_sae.py

index e0bc339b56acbaa36047d926d0e87f2334e65392..b31046df014d365023a85e28be7af386e9647ea8 100644 (file)
@@ -306,6 +306,23 @@ def test_sae_mixed_mfp(dev, apdev):
     dev[2].connect("test-sae", psk="12345678", ieee80211w="0", scan_freq="2412")
     dev[2].dump_monitor()
 
+def test_sae_mfp(dev, apdev):
+    """SAE and MFP enabled without sae_require_mfp"""
+    if "SAE" not in dev[0].get_capability("auth_alg"):
+        raise HwsimSkip("SAE not supported")
+    params = hostapd.wpa2_params(ssid="test-sae", passphrase="12345678")
+    params['wpa_key_mgmt'] = 'SAE'
+    params["ieee80211w"] = "1"
+    hostapd.add_ap(apdev[0], params)
+
+    dev[0].request("SET sae_groups ")
+    dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE", ieee80211w="2",
+                   scan_freq="2412")
+
+    dev[1].request("SET sae_groups ")
+    dev[1].connect("test-sae", psk="12345678", key_mgmt="SAE", ieee80211w="0",
+                   scan_freq="2412")
+
 @remote_compatible
 def test_sae_missing_password(dev, apdev):
     """SAE and missing password"""