]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Check MESH flag in BSS output in wpas_mesh_mode_scan
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 22 Dec 2016 12:17:48 +0000 (14:17 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 22 Dec 2016 12:17:48 +0000 (14:17 +0200)
In addition, use a single channel scan to make the test case run faster.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_mesh.py

index 9a58bb6117d61e3148acf660754a11209fb0b629..0bf5b51aa364344f7ae0ef6209e9aedcad44c7da 100644 (file)
@@ -74,6 +74,8 @@ def check_mesh_scan(dev, params, other_started=False, beacon_int=0):
             raise Exception("beacon_int missing from BSS entry")
         if str(beacon_int) != bss['beacon_int']:
             raise Exception("Unexpected beacon_int in BSS entry: " + bss['beacon_int'])
+    if '[MESH]' not in bss['flags']:
+        raise Exception("BSS output did not include MESH flag")
 
 def check_mesh_group_added(dev):
     ev = dev.wait_event(["MESH-GROUP-STARTED"])
@@ -190,7 +192,7 @@ def test_wpas_mesh_mode_scan(dev):
     check_mesh_group_added(dev[1])
 
     # Check for Mesh scan
-    check_mesh_scan(dev[0], "use_id=1", beacon_int=175)
+    check_mesh_scan(dev[0], "use_id=1 freq=2412", beacon_int=175)
 
 def test_wpas_mesh_open(dev, apdev):
     """wpa_supplicant open MESH network connectivity"""