aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-12-22 12:17:48 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-22 12:17:48 (GMT)
commitf05a893edac341a82ed00cc8feabe980dd4f6f01 (patch)
tree63f0e8d61276a11b1cdc9fb52545c2b9bfd90f5b
parent4a45dc192112c9c37627478096f60f95a66070b3 (diff)
downloadhostap-f05a893edac341a82ed00cc8feabe980dd4f6f01.zip
hostap-f05a893edac341a82ed00cc8feabe980dd4f6f01.tar.gz
hostap-f05a893edac341a82ed00cc8feabe980dd4f6f01.tar.bz2
tests: Check MESH flag in BSS output in wpas_mesh_mode_scan
In addition, use a single channel scan to make the test case run faster. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_wpas_mesh.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 9a58bb6..0bf5b51 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -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"""