[PATCH 09/17] tests: change test_persistent_group_per_sta_psk() to use global interface

Ilan Peer ilan.peer
Tue May 5 02:36:57 PDT 2015


From: Ben Rosenfeld <ben.rosenfeld at intel.com>

This is required for cases that a dedicated P2P Device interface
is used and then the event will happen on the global interface.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 tests/hwsim/test_p2p_persistent.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py
index 9abd604..65bf904 100644
--- a/tests/hwsim/test_p2p_persistent.py
+++ b/tests/hwsim/test_p2p_persistent.py
@@ -219,7 +219,7 @@ def test_persistent_group_per_sta_psk(dev):
 
     logger.info("Leave persistent group and rejoin it")
     dev[2].remove_group()
-    ev = dev[2].wait_event(["P2P-GROUP-REMOVED"], timeout=3)
+    ev = dev[2].wait_global_event(["P2P-GROUP-REMOVED"], timeout=3)
     if ev is None:
         raise Exception("Group removal event timed out")
     if not dev[2].discover_peer(addr0, social=True):
-- 
1.9.1




More information about the Hostap mailing list