aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-04 17:56:39 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-04 17:59:39 (GMT)
commit2cf6341e64b0f807f0accbe547a8c705dcf720a9 (patch)
treea2619b7f1096ac7fdfb4fa90eedffac0b9567954 /tests
parentd2cc8bbbf683e7ad97201e97c9850d6f028cc777 (diff)
downloadhostap-2cf6341e64b0f807f0accbe547a8c705dcf720a9.zip
hostap-2cf6341e64b0f807f0accbe547a8c705dcf720a9.tar.gz
hostap-2cf6341e64b0f807f0accbe547a8c705dcf720a9.tar.bz2
tests: Mesh and invalid frequency configuration
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 3944fb1..b199f5a 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -109,7 +109,8 @@ def add_open_mesh_network(dev, freq="2412", start=True, beacon_int=0,
dev.set_network(id, "mode", "5")
dev.set_network_quoted(id, "ssid", "wpas-mesh-open")
dev.set_network(id, "key_mgmt", "NONE")
- dev.set_network(id, "frequency", freq)
+ if freq:
+ dev.set_network(id, "frequency", freq)
if chwidth > 0:
dev.set_network(id, "max_oper_chwidth", str(chwidth))
if beacon_int:
@@ -1155,3 +1156,19 @@ def test_mesh_failure(dev, apdev):
dev[1].mesh_group_remove()
check_mesh_group_removed(dev[0])
check_mesh_group_removed(dev[1])
+
+def test_mesh_invalid_frequency(dev, apdev):
+ """Mesh and invalid frequency configuration"""
+ check_mesh_support(dev[0])
+ add_open_mesh_network(dev[0], freq=None)
+ ev = dev[0].wait_event(["MESH-GROUP-STARTED",
+ "Could not join mesh"])
+ if ev is None or "Could not join mesh" not in ev:
+ raise Exception("Mesh join failure not reported")
+ dev[0].request("REMOVE_NETWORK all")
+
+ add_open_mesh_network(dev[0], freq="2413")
+ ev = dev[0].wait_event(["MESH-GROUP-STARTED",
+ "Could not join mesh"])
+ if ev is None or "Could not join mesh" not in ev:
+ raise Exception("Mesh join failure not reported")