]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P re-invocation with p2p_add_cli_chan=1
authorJouni Malinen <j@w1.fi>
Sat, 18 Oct 2014 13:50:17 +0000 (16:50 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 18 Oct 2014 14:00:57 +0000 (17:00 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_persistent.py

index 8e9a3b43a21b2b0e0298a0d3a7a44af15398d338..2e3a17a1de72892cd2e11c42d1dade40f3d5fb36 100644 (file)
@@ -525,3 +525,16 @@ def test_persistent_group_already_running(dev):
     if "OK" not in dev[0].global_request("P2P_GROUP_ADD persistent=" + networks[0]['id'] + " freq=" + listen_freq):
         raise Exception("Could not state GO")
     invite_from_cli(dev[0], dev[1])
+
+def test_persistent_group_add_cli_chan(dev):
+    """P2P persistent group formation and re-invocation with p2p_add_cli_chan=1"""
+    dev[0].request("SET p2p_add_cli_chan 1")
+    dev[1].request("SET p2p_add_cli_chan 1")
+    form(dev[0], dev[1])
+    dev[1].request("BSS_FLUSH 0")
+    dev[1].scan(freq="2412", only_new=True)
+    dev[1].scan(freq="2437", only_new=True)
+    dev[1].scan(freq="2462", only_new=True)
+    dev[1].request("BSS_FLUSH 0")
+    invite_from_cli(dev[0], dev[1])
+    invite_from_go(dev[0], dev[1])