mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: Remove wpas_mesh_open_5ghz_coex
This is in preparation for an implementation change that ends up contradicting the operations enforced in this test case for mesh coex. Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
This commit is contained in:
parent
7f8ac02e85
commit
0be9c232a3
@ -929,56 +929,6 @@ def _test_wpas_mesh_open_5ghz(dev, apdev):
|
||||
dev[0].dump_monitor()
|
||||
dev[1].dump_monitor()
|
||||
|
||||
def test_wpas_mesh_open_5ghz_coex(dev, apdev):
|
||||
"""Mesh network on 5 GHz band and 20/40 coex change"""
|
||||
try:
|
||||
_test_wpas_mesh_open_5ghz_coex(dev, apdev)
|
||||
finally:
|
||||
dev[0].request("MESH_GROUP_REMOVE " + dev[0].ifname)
|
||||
dev[1].request("MESH_GROUP_REMOVE " + dev[1].ifname)
|
||||
set_world_reg(apdev0=apdev[0], dev0=dev[0])
|
||||
dev[0].flush_scan_cache()
|
||||
dev[1].flush_scan_cache()
|
||||
|
||||
def _test_wpas_mesh_open_5ghz_coex(dev, apdev):
|
||||
check_mesh_support(dev[0])
|
||||
subprocess.call(['iw', 'reg', 'set', 'US'])
|
||||
|
||||
# Start a 20 MHz BSS on channel 40 that would be the secondary channel of
|
||||
# HT40+ mesh on channel 36.
|
||||
params = {"ssid": "test-ht40",
|
||||
"hw_mode": "a",
|
||||
"channel": "40",
|
||||
"country_code": "US"}
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
bssid = hapd.own_addr()
|
||||
|
||||
for i in range(2):
|
||||
for j in range(5):
|
||||
ev = dev[i].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=5)
|
||||
if ev is None:
|
||||
raise Exception("No regdom change event")
|
||||
if "alpha2=US" in ev:
|
||||
break
|
||||
dev[i].scan_for_bss(bssid, freq=5200)
|
||||
add_open_mesh_network(dev[i], freq="5180")
|
||||
|
||||
check_mesh_joined_connected(dev)
|
||||
|
||||
freq = dev[0].get_status_field("freq")
|
||||
if freq != "5200":
|
||||
raise Exception("Unexpected STATUS freq=" + freq)
|
||||
sig = dev[0].request("SIGNAL_POLL").splitlines()
|
||||
if "FREQUENCY=5200" not in sig:
|
||||
raise Exception("Unexpected SIGNAL_POLL output: " + str(sig))
|
||||
|
||||
hapd.disable()
|
||||
dev[0].mesh_group_remove()
|
||||
dev[1].mesh_group_remove()
|
||||
check_mesh_group_removed(dev[0])
|
||||
check_mesh_group_removed(dev[1])
|
||||
dev[0].dump_monitor()
|
||||
dev[1].dump_monitor()
|
||||
|
||||
def test_wpas_mesh_open_ht40(dev, apdev):
|
||||
"""Mesh and HT40 support difference"""
|
||||
|
Loading…
Reference in New Issue
Block a user