tests: wpa_state == COMPLETED in mesh

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-06-24 18:24:37 +03:00
parent 4976618c76
commit e18d170848

View file

@ -208,6 +208,13 @@ def test_wpas_mesh_open(dev, apdev):
# Test connectivity 0->1 and 1->0 # Test connectivity 0->1 and 1->0
hwsim_utils.test_connectivity(dev[0], dev[1]) hwsim_utils.test_connectivity(dev[0], dev[1])
state = dev[0].get_status_field("wpa_state")
if state != "COMPLETED":
raise Exception("Unexpected wpa_state on dev0: " + state)
state = dev[1].get_status_field("wpa_state")
if state != "COMPLETED":
raise Exception("Unexpected wpa_state on dev1: " + state)
def test_wpas_mesh_open_no_auto(dev, apdev): def test_wpas_mesh_open_no_auto(dev, apdev):
"""wpa_supplicant open MESH network connectivity""" """wpa_supplicant open MESH network connectivity"""
check_mesh_support(dev[0]) check_mesh_support(dev[0])
@ -269,6 +276,13 @@ def test_wpas_mesh_secure(dev, apdev):
# Test connectivity 0->1 and 1->0 # Test connectivity 0->1 and 1->0
hwsim_utils.test_connectivity(dev[0], dev[1]) hwsim_utils.test_connectivity(dev[0], dev[1])
state = dev[0].get_status_field("wpa_state")
if state != "COMPLETED":
raise Exception("Unexpected wpa_state on dev0: " + state)
state = dev[1].get_status_field("wpa_state")
if state != "COMPLETED":
raise Exception("Unexpected wpa_state on dev1: " + state)
def test_mesh_secure_pmf(dev, apdev): def test_mesh_secure_pmf(dev, apdev):
"""Secure mesh network connectivity with PMF enabled""" """Secure mesh network connectivity with PMF enabled"""
check_mesh_support(dev[0], secure=True) check_mesh_support(dev[0], secure=True)