[PATCH 06/24] tests: Use the global control interface in test_p2p_channel_avoid()
Ilan Peer
ilan.peer
Wed Feb 4 01:30:18 PST 2015
Use the global control interface to wait for
P2P-REMOVE-AND-REFORM-GROUP as the event is a global
event.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
tests/hwsim/test_p2p_channel.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py
index 521c53a..6a4b4d8 100644
--- a/tests/hwsim/test_p2p_channel.py
+++ b/tests/hwsim/test_p2p_channel.py
@@ -173,7 +173,7 @@ def test_p2p_channel_avoid(dev):
ev = dev[0].wait_event(["CTRL-EVENT-AVOID-FREQ"], timeout=10)
if ev is None:
raise Exception("No CTRL-EVENT-AVOID-FREQ event")
- ev = dev[0].wait_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=1)
+ ev = dev[0].wait_global_event(["P2P-REMOVE-AND-REFORM-GROUP"],timeout=10)
if ev is not None:
raise Exception("Unexpected P2P-REMOVE-AND-REFORM-GROUP event")
@@ -182,7 +182,7 @@ def test_p2p_channel_avoid(dev):
ev = dev[0].wait_event(["CTRL-EVENT-AVOID-FREQ"], timeout=10)
if ev is None:
raise Exception("No CTRL-EVENT-AVOID-FREQ event")
- ev = dev[0].wait_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=10)
+ ev = dev[0].wait_global_event(["P2P-REMOVE-AND-REFORM-GROUP"], timeout=10)
if ev is None:
raise Exception("No P2P-REMOVE-AND-REFORM-GROUP event")
finally:
--
1.8.3.2
More information about the Hostap
mailing list