]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Mesh BSS on 5 GHz band channel 140
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 3 Nov 2023 14:03:34 +0000 (16:03 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Nov 2023 14:05:03 +0000 (16:05 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_wpas_mesh.py

index ef4a8b53351035a258b946aa83a8d26d6cbd206a..756543784ee06ecd305c6dfc81e56476fff3e519 100644 (file)
@@ -999,6 +999,33 @@ def _test_wpas_mesh_open_5ghz(dev, apdev):
     dev[0].dump_monitor()
     dev[1].dump_monitor()
 
+def test_wpas_mesh_open_5ghz_chan140(dev, apdev):
+    """Mesh BSS on 5 GHz band channel 140"""
+    try:
+        _test_wpas_mesh_open_5ghz_chan140(dev, apdev)
+    finally:
+        clear_reg_setting(dev)
+
+def _test_wpas_mesh_open_5ghz_chan140(dev, apdev):
+    check_mesh_support(dev[0])
+    subprocess.call(['iw', 'reg', 'set', 'ZA'])
+    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=ZA" in ev:
+                break
+        add_open_mesh_network(dev[i], freq="5700")
+
+    check_mesh_joined_connected(dev, connectivity=True)
+
+    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"""