From: Jouni Malinen Date: Fri, 8 May 2015 15:15:56 +0000 (+0300) Subject: tests: Fix go_neg_with_bss_connected with P2P Device X-Git-Tag: hostap_2_5~720 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e66334157f6d214858da28a583106212de175c;p=thirdparty%2Fhostap.git tests: Fix go_neg_with_bss_connected with P2P Device Group interface name was fetched from the results of an incorrect group formation and because of this, group removal failed in case P2P Device is used and dev[1] ends up getting different group ifname for the groups. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py index 3011d392d..56bba04f8 100644 --- a/tests/hwsim/test_p2p_channel.py +++ b/tests/hwsim/test_p2p_channel.py @@ -230,6 +230,7 @@ def test_go_neg_with_bss_connected(dev, apdev): raise Exception("Group formed on a different frequency than BSS") hwsim_utils.test_connectivity(dev[0], hapd) dev[0].remove_group(i_res['ifname']) + dev[1].wait_go_ending_session() if dev[0].get_mcc() > 1: logger.info("Skip as-client case due to MCC being enabled") @@ -244,7 +245,7 @@ def test_go_neg_with_bss_connected(dev, apdev): if i_res2['freq'] != "2432": raise Exception("Group formed on a different frequency than BSS") hwsim_utils.test_connectivity(dev[0], hapd) - dev[1].remove_group(r_res['ifname']) + dev[1].remove_group(r_res2['ifname']) dev[0].wait_go_ending_session() dev[0].request("DISCONNECT") hapd.disable()