diff mbox

[03/24] tests: Use global control interface in test_autogo()

Message ID 1423042236-25252-4-git-send-email-ilan.peer@intel.com
State Changes Requested
Headers show

Commit Message

Peer, Ilan Feb. 4, 2015, 9:30 a.m. UTC
P2P-PRESENCE-RESPONSE is a global event, and thus need
to use the global control interface.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 tests/hwsim/test_p2p_autogo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Feb. 5, 2015, 11:30 a.m. UTC | #1
On Wed, Feb 04, 2015 at 04:30:15AM -0500, Ilan Peer wrote:
> P2P-PRESENCE-RESPONSE is a global event, and thus need
> to use the global control interface.

No, it is not a global event, it is a group event.
diff mbox

Patch

diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py
index de42857..a6d9511 100644
--- a/tests/hwsim/test_p2p_autogo.py
+++ b/tests/hwsim/test_p2p_autogo.py
@@ -63,7 +63,7 @@  def test_autogo(dev):
         raise Exception("Invald P2P_PRESENCE_REQ accepted")
     if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"):
         raise Exception("Could not send presence request")
-    ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"])
+    ev = dev[1].wait_global_event(["P2P-PRESENCE-RESPONSE"], 10)
     if ev is None:
         raise Exception("Timeout while waiting for Presence Response")
     if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400 20000 102400"):