]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait on the global control interface for CTRL-EVENT-REGDOM-CHANGE
authorBen Rosenfeld <ben.rosenfeld@intel.com>
Wed, 17 Jun 2015 13:25:01 +0000 (16:25 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 08:31:53 +0000 (11:31 +0300)
The event is not interface specific, so wait for it on the global
control interface socket.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
tests/hwsim/test_wpas_ctrl.py

index 59637d6cd1a82433454fb30bbab0079e0400ac91..c51de275d2f1a399cf2c8e7136106d8e88015e80 100644 (file)
@@ -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: