From 36e66334157f6d214858da28a583106212de175c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 8 May 2015 18:15:56 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_p2p_channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()