]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P with 6 GHz disabled
authorJouni Malinen <jouni@codeaurora.org>
Thu, 8 Oct 2020 20:29:50 +0000 (23:29 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 8 Oct 2020 20:29:50 +0000 (23:29 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_p2p_channel.py

index ad1d712d644c134fa5eba5d3ecfc58eee7bb4703..87a1a24a73d48519a787a5a9f5f14446f0319bed 100644 (file)
@@ -1366,3 +1366,15 @@ def test_p2p_channel_drv_pref_autogo(dev):
     res_go = autogo(dev[0])
     if res_go['freq'] != "2417":
         raise Exception("Unexpected operating frequency: " + res_go['freq'])
+
+def test_p2p_channel_disable_6ghz(dev):
+    """P2P with 6 GHz disabled"""
+    try:
+        dev[0].global_request("SET p2p_6ghz_disable 1")
+        dev[1].p2p_listen()
+        dev[0].discover_peer(dev[1].p2p_dev_addr(), social=False)
+
+        autogo(dev[1])
+        connect_cli(dev[1], dev[0])
+    finally:
+        dev[0].global_request("SET p2p_6ghz_disable 0")