From: Jouni Malinen Date: Tue, 13 Oct 2015 15:55:48 +0000 (+0300) Subject: tests: Fix p2ps_channel_both_connected_same X-Git-Tag: hostap_2_6~1522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4150c7c97c3de10ced627eb26edfb45970795f82;p=thirdparty%2Fhostap.git 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 --- 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':