aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-09-01 23:13:50 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-04 10:32:04 (GMT)
commiteea62048d8b246c3ae865ed3348edef7830e3d9d (patch)
tree74475568921b8b8b659ab53b6d17737784614a58 /tests
parenta0f19e9c74f2f458fc435c01c04124bdc7979b3e (diff)
downloadhostap-eea62048d8b246c3ae865ed3348edef7830e3d9d.zip
hostap-eea62048d8b246c3ae865ed3348edef7830e3d9d.tar.gz
hostap-eea62048d8b246c3ae865ed3348edef7830e3d9d.tar.bz2
tests: SAE commit message override on wpa_supplicant
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_sae.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py
index 8eb5e0a..00866a5 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -762,6 +762,23 @@ def test_sae_commit_override(dev, apdev):
raise Exception("Unexpected connection")
@remote_compatible
+def test_sae_commit_override2(dev, apdev):
+ """SAE commit override (wpa_supplicant)"""
+ 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'
+ hapd = hostapd.add_ap(apdev[0], params)
+ dev[0].request("SET sae_groups ")
+ dev[0].set('sae_commit_override', '13ffbad00d215867a7c5ff37d87bb9bdb7cb116e520f71e8d7a794ca2606d537ddc6c099c40e7a25372b80a8fd443cd7dd222c8ea21b8ef372d4b3e316c26a73fd999cc79ad483eb826e7b3893ea332da68fa13224bcdeb4fb18b0584dd100a2c514')
+ dev[0].connect("test-sae", psk="test-sae", key_mgmt="SAE",
+ scan_freq="2412", wait_connect=False)
+ ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1)
+ if ev is not None:
+ raise Exception("Unexpected connection")
+
+@remote_compatible
def test_sae_anti_clogging_proto(dev, apdev):
"""SAE anti clogging protocol testing"""
if "SAE" not in dev[0].get_capability("auth_alg"):