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

Ilan Peer ilan.peer
Wed Feb 4 01:30:21 PST 2015


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 at intel.com>
---
 tests/hwsim/test_p2p_invitation.py | 4 ++++
 1 file changed, 4 insertions(+)

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")
-- 
1.8.3.2




More information about the Hostap mailing list