tests: Fix wpas_ctrl_country to match the fixed event data
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>
This commit is contained in:
parent
42619d68a6
commit
8094a0077a
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ def test_wpas_ctrl_country(dev, apdev):
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
|
ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"])
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("regdom change event not seen")
|
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)
|
raise Exception("Unexpected event contents: " + ev)
|
||||||
finally:
|
finally:
|
||||||
subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
|
subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
|
||||||
|
|
Loading…
Reference in a new issue