tests: Fix mesh_sae_groups_invalid to reset sae_groups setting

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>
This commit is contained in:
Jouni Malinen 2019-03-18 00:01:34 +02:00
parent 96ad141e6c
commit e71a90711d

View 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"""