]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional coverage in mesh_sae_groups_invalid
authorJouni Malinen <j@w1.fi>
Sun, 12 Jun 2016 14:56:02 +0000 (17:56 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 12 Jun 2016 14:56:02 +0000 (17:56 +0300)
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>
tests/hwsim/test_wpas_mesh.py

index 199850c327f136d1469e95ad692710014d7df205..fc0abca6ad76852e7de61f76cef5c19176d1ecc6 100644 (file)
@@ -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 ")