aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-18 13:50:17 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-18 14:00:57 (GMT)
commit9c2d2378ba6bce99b261e2da6442fc5512f8e423 (patch)
tree274eeb0d242d631e2a6f6658a2c3ffab678db29d /tests
parenta0a5f73e62305059fb6f1f4872accd6117af1cd5 (diff)
downloadhostap-9c2d2378ba6bce99b261e2da6442fc5512f8e423.zip
hostap-9c2d2378ba6bce99b261e2da6442fc5512f8e423.tar.gz
hostap-9c2d2378ba6bce99b261e2da6442fc5512f8e423.tar.bz2
tests: P2P re-invocation with p2p_add_cli_chan=1
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_p2p_persistent.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py
index 8e9a3b4..2e3a17a 100644
--- a/tests/hwsim/test_p2p_persistent.py
+++ b/tests/hwsim/test_p2p_persistent.py
@@ -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])