From: Jouni Malinen Date: Sat, 13 Apr 2019 09:06:25 +0000 (+0300) Subject: tests: Make regdom clearing in WNM tests more robust X-Git-Tag: hostap_2_8~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52ad367624dce4511f7a574eef312e595d197a5e;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 7baa24cff..86af2aa3a 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -27,6 +27,7 @@ def clear_regdom_state(dev, hapd, hapd2): hapd.request("DISABLE") if hapd2: hapd2.request("DISABLE") + subprocess.call(['iw', 'reg', 'set', '00']) dev[0].disconnect_and_stop_scan() subprocess.call(['iw', 'reg', 'set', '00']) dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5)