[PATCH 03/17] tests: change set_country() to use the global interface to get country event
Ilan Peer
ilan.peer
Tue May 5 02:36:51 PDT 2015
From: Ben Rosenfeld <ben.rosenfeld at intel.com>
This is required for cases that multiple interfaces are used and the
event can happen on any of them, for example when a dedicated P2P Device
interface is used.
Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
tests/hwsim/test_p2p_channel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/hwsim/test_p2p_channel.py b/tests/hwsim/test_p2p_channel.py
index d89159a..779ce92 100644
--- a/tests/hwsim/test_p2p_channel.py
+++ b/tests/hwsim/test_p2p_channel.py
@@ -26,7 +26,7 @@ def set_country(country, dev=None):
time.sleep(0.1)
if dev:
for i in range(10):
- ev = dev.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15)
+ ev = dev.wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=15)
if ev is None:
raise Exception("No regdom change event seen")
if "type=COUNTRY alpha2=" + country in ev:
--
1.9.1
More information about the Hostap
mailing list