diff mbox

[09/24] tests: Update group ifname in p2p_go_invite_auth()

Message ID 1423042236-25252-10-git-send-email-ilan.peer@intel.com
State Accepted
Headers show

Commit Message

Peer, Ilan Feb. 4, 2015, 9:30 a.m. UTC
Once the connection is established need to call
group_form_result() on the invited device, as otherwise
the group interface name is not updated and the
connectivity test is done with the main interface instead
of the group interface.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 tests/hwsim/test_p2p_invitation.py | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/tests/hwsim/test_p2p_invitation.py b/tests/hwsim/test_p2p_invitation.py
index bc4fb1b..afde1cb 100644
--- a/tests/hwsim/test_p2p_invitation.py
+++ b/tests/hwsim/test_p2p_invitation.py
@@ -90,10 +90,14 @@  def test_p2p_go_invite_auth(dev):
     dev[0].global_request("P2P_INVITE group=" + dev[0].group_ifname + " peer=" + addr1)
     ev = dev[1].wait_global_event(["P2P-INVITATION-RECEIVED",
                                    "P2P-GROUP-STARTED"], timeout=20)
+
     if ev is None:
         raise Exception("Timeout on invitation on peer")
     if "P2P-INVITATION-RECEIVED" in ev:
         raise Exception("Unexpected request to accept pre-authorized invitaton")
+    else:
+        dev[1].group_form_result(ev)
+
     dev[0].dump_monitor()
 
     logger.info("Client connected")