]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix go_neg_with_bss_connected with P2P Device
authorJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:15:56 +0000 (18:15 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:33:16 +0000 (18:33 +0300)
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 <j@w1.fi>
tests/hwsim/test_p2p_channel.py

index 3011d392d1d85469dc6b4d02e606070b6d29036b..56bba04f89853633aeb89b28b26997113ce366fe 100644 (file)
@@ -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()