tests: wpa_supplicant secure MESH and SAE group negotiation
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 30 May 2016 18:15:30 +0000 (21:15 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 30 May 2016 18:15:30 +0000 (21:15 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_mesh.py

index bc76bc7..2bd2e8f 100644 (file)
@@ -311,6 +311,30 @@ def test_wpas_mesh_secure_sae_group_mismatch(dev, apdev):
     dev[1].request("SET sae_groups ")
     dev[2].request("SET sae_groups ")
 
+def test_wpas_mesh_secure_sae_group_negotiation(dev, apdev):
+    """wpa_supplicant secure MESH and SAE group negotiation"""
+    check_mesh_support(dev[0], secure=True)
+    addr0 = dev[0].own_addr()
+    addr1 = dev[1].own_addr()
+
+    #dev[0].request("SET sae_groups 21 20 25 26")
+    dev[0].request("SET sae_groups 25")
+    id = add_mesh_secure_net(dev[0])
+    dev[0].mesh_group_add(id)
+
+    dev[1].request("SET sae_groups 19 25")
+    id = add_mesh_secure_net(dev[1])
+    dev[1].mesh_group_add(id)
+
+    check_mesh_group_added(dev[0])
+    check_mesh_group_added(dev[1])
+
+    check_mesh_peer_connected(dev[0])
+    check_mesh_peer_connected(dev[1])
+
+    dev[0].request("SET sae_groups ")
+    dev[1].request("SET sae_groups ")
+
 def test_wpas_mesh_secure_sae_missing_password(dev, apdev):
     """wpa_supplicant secure MESH and missing SAE password"""
     check_mesh_support(dev[0], secure=True)