]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Mesh BSS data
authorJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 10:53:57 +0000 (12:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 10:55:43 +0000 (12:55 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index 5deb0604021a517814a6d46a979fd94eaec6edcb..38090f36bfcfbd7be117c13a531607eda7d873fe 100644 (file)
@@ -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"])