[PATCH 15/16] tests: Wait on the global control interface for CTRL-EVENT-REGDOM-CHANGE
Ilan Peer
ilan.peer
Wed Jun 17 06:25:01 PDT 2015
From: Ben Rosenfeld <ben.rosenfeld at intel.com>
The event is not interface specific, and is now sent over the
global control interface socket.
Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
tests/hwsim/test_wpas_ctrl.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py
index 59637d6..c51de27 100644
--- a/tests/hwsim/test_wpas_ctrl.py
+++ b/tests/hwsim/test_wpas_ctrl.py
@@ -1017,7 +1017,7 @@ def test_wpas_ctrl_country(dev, apdev):
raise Exception("Failed to set country code")
if dev[0].request("GET country") != "FI":
raise Exception("Country code set failed")
- ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
+ ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], 10)
if ev is None:
raise Exception("regdom change event not seen")
if "init=USER type=COUNTRY alpha2=FI" not in ev:
@@ -1025,7 +1025,7 @@ def test_wpas_ctrl_country(dev, apdev):
dev[0].request("SET country 00")
if dev[0].request("GET country") != "00":
raise Exception("Country code set failed")
- ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
+ ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], 10)
if ev is None:
raise Exception("regdom change event not seen")
if "init=CORE type=WORLD" not in ev:
--
1.9.1
More information about the Hostap
mailing list