From: Jouni Malinen Date: Sun, 14 Dec 2014 10:53:57 +0000 (+0200) Subject: tests: Mesh BSS data X-Git-Tag: hostap_2_4~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba65f7240a77f583c3e500bf3d0bdcc43d13bf7;p=thirdparty%2Fhostap.git tests: Mesh BSS data Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index 5deb06040..38090f36b 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -46,6 +46,12 @@ def check_mesh_scan(dev, params, other_started=False): if res.find("[MESH]") < 0: raise Exception("Scan did not contain a MESH network") + bssid = res.splitlines()[1].split(' ')[0] + bss = dev.get_bss(bssid) + if bss is None: + raise Exception("Could not get BSS entry for mesh") + if 'mesh_capability' not in bss: + raise Exception("mesh_capability missing from BSS entry") def check_mesh_group_added(dev): ev = dev.wait_event(["MESH-GROUP-STARTED"])