aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-01-13 21:26:20 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-13 21:26:20 (GMT)
commit7f2905e0dabcdbabd943a78bae9b2d6de9d101cc (patch)
tree79d841fa0f401733924488c65827cab71badeb59 /tests
parentfcd3d6ce32b61b2139a983f45d19a04fa7150056 (diff)
downloadhostap-7f2905e0dabcdbabd943a78bae9b2d6de9d101cc.zip
hostap-7f2905e0dabcdbabd943a78bae9b2d6de9d101cc.tar.gz
hostap-7f2905e0dabcdbabd943a78bae9b2d6de9d101cc.tar.bz2
tests: Mesh with two stations that can't reach each other directly (RSN)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 9ff85a6..72c58fd 100644
--- a/tests/hwsim/test_wpas_mesh.py
+++ b/tests/hwsim/test_wpas_mesh.py
@@ -2057,3 +2057,27 @@ def test_mesh_forwarding(dev):
set_group_map(dev[0], 1)
set_group_map(dev[1], 1)
set_group_map(dev[2], 1)
+
+def test_mesh_forwarding_secure(dev):
+ """Mesh with two stations that can't reach each other directly (RSN)"""
+ check_mesh_support(dev[0], secure=True)
+ try:
+ set_group_map(dev[0], 1)
+ set_group_map(dev[1], 3)
+ set_group_map(dev[2], 2)
+ for i in range(3):
+ dev[i].request("SET sae_groups ")
+ id = add_mesh_secure_net(dev[i])
+ dev[i].mesh_group_add(id)
+ check_mesh_group_added(dev[i])
+ for i in range(3):
+ check_mesh_peer_connected(dev[i])
+
+ hwsim_utils.test_connectivity(dev[0], dev[1])
+ hwsim_utils.test_connectivity(dev[1], dev[2])
+ hwsim_utils.test_connectivity(dev[0], dev[2])
+ finally:
+ # reset groups
+ set_group_map(dev[0], 1)
+ set_group_map(dev[1], 1)
+ set_group_map(dev[2], 1)