mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
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>
This commit is contained in:
parent
4a45dc1921
commit
f05a893eda
@ -74,6 +74,8 @@ def check_mesh_scan(dev, params, other_started=False, beacon_int=0):
|
|||||||
raise Exception("beacon_int missing from BSS entry")
|
raise Exception("beacon_int missing from BSS entry")
|
||||||
if str(beacon_int) != bss['beacon_int']:
|
if str(beacon_int) != bss['beacon_int']:
|
||||||
raise Exception("Unexpected beacon_int in BSS entry: " + 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):
|
def check_mesh_group_added(dev):
|
||||||
ev = dev.wait_event(["MESH-GROUP-STARTED"])
|
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_mesh_group_added(dev[1])
|
||||||
|
|
||||||
# Check for Mesh scan
|
# 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):
|
def test_wpas_mesh_open(dev, apdev):
|
||||||
"""wpa_supplicant open MESH network connectivity"""
|
"""wpa_supplicant open MESH network connectivity"""
|
||||||
|
Loading…
Reference in New Issue
Block a user