]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix mesh_sae_groups_invalid to reset sae_groups setting
authorJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 22:01:34 +0000 (00:01 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 17 Mar 2019 22:02:16 +0000 (00:02 +0200)
This test case did not clear a possibly modified sae_groups value from a
prior test case for adev[2] and could fail if the previously set group
was not supported by the AP.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index 3d307cc79925d6f69d56c3ab4073765a0602ec24..2381095640c5652fe7d18126b057d0b5e8935c5f 100644 (file)
@@ -1823,6 +1823,7 @@ def test_mesh_sae_groups_invalid(dev, apdev):
     # wpa_s->mesh_rsn->sae_group_index.
     dev[0].dump_monitor()
     dev[1].dump_monitor()
+    dev[2].request("SET sae_groups ")
     id = add_mesh_secure_net(dev[2])
     dev[2].mesh_group_add(id)
     check_mesh_group_added(dev[2])
@@ -1837,6 +1838,7 @@ def test_mesh_sae_groups_invalid(dev, apdev):
 
     dev[0].request("SET sae_groups ")
     dev[1].request("SET sae_groups ")
+    dev[2].request("SET sae_groups ")
 
 def test_mesh_sae_failure(dev, apdev):
     """Mesh and local SAE failures"""