tests: Make regdom clearing in WNM tests more robust
It looks like the scan operation could end up reverting regdom back to the previously configured one, so configure 00 country before starting the disconnect-and-stop-scan operation to give some more time for the regdom to be cleared. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e467d7ab4a
commit
52ad367624
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ def clear_regdom_state(dev, hapd, hapd2):
|
||||||
hapd.request("DISABLE")
|
hapd.request("DISABLE")
|
||||||
if hapd2:
|
if hapd2:
|
||||||
hapd2.request("DISABLE")
|
hapd2.request("DISABLE")
|
||||||
|
subprocess.call(['iw', 'reg', 'set', '00'])
|
||||||
dev[0].disconnect_and_stop_scan()
|
dev[0].disconnect_and_stop_scan()
|
||||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
subprocess.call(['iw', 'reg', 'set', '00'])
|
||||||
dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5)
|
dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5)
|
||||||
|
|
Loading…
Reference in a new issue