mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Fix wpas_ctrl_country and dbus_country with valid db.txt
init=CORE was previously used due to invalid db.txt data for 00. For now, allow both it and the new init=USER after fixed db.txt. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5b7784a89c
commit
be90370bd5
@ -2273,7 +2273,9 @@ def _test_dbus_country(dev, apdev):
|
|||||||
ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
|
ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("regdom change event not seen")
|
raise Exception("regdom change event not seen")
|
||||||
if "init=CORE type=WORLD" not in ev:
|
# init=CORE was previously used due to invalid db.txt data for 00. For
|
||||||
|
# now, allow both it and the new init=USER after fixed db.txt.
|
||||||
|
if "init=CORE type=WORLD" not in ev and "init=USER type=WORLD" not in ev:
|
||||||
raise Exception("Unexpected event contents: " + ev)
|
raise Exception("Unexpected event contents: " + ev)
|
||||||
|
|
||||||
def test_dbus_scan_interval(dev, apdev):
|
def test_dbus_scan_interval(dev, apdev):
|
||||||
|
@ -1158,7 +1158,9 @@ def test_wpas_ctrl_country(dev, apdev):
|
|||||||
ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], 10)
|
ev = dev[0].wait_global_event(["CTRL-EVENT-REGDOM-CHANGE"], 10)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("regdom change event not seen")
|
raise Exception("regdom change event not seen")
|
||||||
if "init=CORE type=WORLD" not in ev:
|
# init=CORE was previously used due to invalid db.txt data for 00. For
|
||||||
|
# now, allow both it and the new init=USER after fixed db.txt.
|
||||||
|
if "init=CORE type=WORLD" not in ev and "init=USER type=WORLD" not in ev:
|
||||||
raise Exception("Unexpected event contents: " + ev)
|
raise Exception("Unexpected event contents: " + ev)
|
||||||
finally:
|
finally:
|
||||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
subprocess.call(['iw', 'reg', 'set', '00'])
|
||||||
|
Loading…
Reference in New Issue
Block a user