aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-12 14:56:02 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-12 14:56:02 (GMT)
commita3bd53273e5b9b098b88eeb3285a7825e756612b (patch)
tree09ed02af30763b704e1af1555158e7c1238f83d1 /tests
parentf7cb6e9f24f9b57831dbe0a54db294e354f7ce28 (diff)
downloadhostap-a3bd53273e5b9b098b88eeb3285a7825e756612b.zip
hostap-a3bd53273e5b9b098b88eeb3285a7825e756612b.tar.gz
hostap-a3bd53273e5b9b098b88eeb3285a7825e756612b.tar.bz2
tests: Additional coverage in mesh_sae_groups_invalid
Additional coverage in mesh_rsn_sae_group() with non-zero wpa_s->mesh_rsn->sae_group_index. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 199850c..fc0abca 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -1224,6 +1224,22 @@ def test_mesh_sae_groups_invalid(dev, apdev):
if ev is not None:
raise Exception("Unexpected connection(1)")
+ # Additional coverage in mesh_rsn_sae_group() with non-zero
+ # wpa_s->mesh_rsn->sae_group_index.
+ dev[0].dump_monitor()
+ dev[1].dump_monitor()
+ id = add_mesh_secure_net(dev[2])
+ dev[2].mesh_group_add(id)
+ check_mesh_group_added(dev[2])
+ check_mesh_peer_connected(dev[0])
+ check_mesh_peer_connected(dev[2])
+ ev = dev[1].wait_event(["new peer notification"], timeout=10)
+ if ev is None:
+ raise Exception("dev[1] did not see peer(2)")
+ dev[0].dump_monitor()
+ dev[1].dump_monitor()
+ dev[2].dump_monitor()
+
dev[0].request("SET sae_groups ")
dev[1].request("SET sae_groups ")