From 4150c7c97c3de10ced627eb26edfb45970795f82 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 13 Oct 2015 18:55:48 +0300 Subject: [PATCH] tests: Fix p2ps_channel_both_connected_same I modified this test case for commit eabf083984230f7f608f28f61319f8cd67ba19cf ('tests: P2PS channel handling') to use dev[2] instead of dev[0], but forgot to update the p2ps_connect_p2ps_method() dev list to match that. Fix this to actually use a concurrent connection. Signed-off-by: Jouni Malinen --- tests/hwsim/test_p2ps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_p2ps.py b/tests/hwsim/test_p2ps.py index cf0ea9cc8..5bbbd6649 100644 --- a/tests/hwsim/test_p2ps.py +++ b/tests/hwsim/test_p2ps.py @@ -1117,7 +1117,8 @@ def test_p2ps_channel_both_connected_same(dev, apdev): dev[2].connect("bss-2.4ghz", key_mgmt="NONE", scan_freq="2437") dev[1].connect("bss-2.4ghz", key_mgmt="NONE", scan_freq="2437") - (grp_ifname0, grp_ifname1, ifnames) = p2ps_connect_p2ps_method(dev, keep_group=True, join_extra=" freq=2437") + tmpdev = [ dev[2], dev[1] ] + (grp_ifname0, grp_ifname1, ifnames) = p2ps_connect_p2ps_method(tmpdev, keep_group=True, join_extra=" freq=2437") freq = dev[2].get_group_status_field('freq'); if freq != '2437':