]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix wpas_ctrl_country to match the fixed event data
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 2 Jul 2014 10:33:24 +0000 (13:33 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 10:34:34 +0000 (13:34 +0300)
This test case for enforcing the incorrect init=DRIVER instead of
init=CORE for the event due to bug in the event message.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wpas_ctrl.py

index 5c98009d08cd9f232798c594c87596e4be911483..5746693decbf3cc54a1e6bfa022f226b3fad082a 100644 (file)
@@ -935,7 +935,7 @@ def test_wpas_ctrl_country(dev, apdev):
         ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
         if ev is None:
             raise Exception("regdom change event not seen")
-        if "init=DRIVER type=WORLD" not in ev:
+        if "init=CORE type=WORLD" not in ev:
             raise Exception("Unexpected event contents: " + ev)
     finally:
         subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])