From: Jouni Malinen Date: Sat, 18 Oct 2014 13:50:17 +0000 (+0300) Subject: tests: P2P re-invocation with p2p_add_cli_chan=1 X-Git-Tag: hostap_2_4~1308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c2d2378ba6bce99b261e2da6442fc5512f8e423;p=thirdparty%2Fhostap.git tests: P2P re-invocation with p2p_add_cli_chan=1 Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py index 8e9a3b43a..2e3a17a1d 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])