From: Jouni Malinen Date: Wed, 29 May 2024 10:21:02 +0000 (+0300) Subject: tests: Use consistent indentation level for clear_regdom_state() X-Git-Tag: hostap_2_11~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=829ab90d2770d243c57dede74802aaa620867bae;p=thirdparty%2Fhostap.git tests: Use consistent indentation level for clear_regdom_state() Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 6a65ca800..4eae99fa4 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -19,19 +19,19 @@ from wlantest import Wlantest from datetime import datetime def clear_regdom_state(dev, hapd, hapd2): - for i in range(0, 3): - ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5) - if ev is None or "init=COUNTRY_IE" in ev: - break - if hapd: - 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) - dev[0].flush_scan_cache() + for i in range(0, 3): + ev = dev[0].wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=0.5) + if ev is None or "init=COUNTRY_IE" in ev: + break + if hapd: + 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) + dev[0].flush_scan_cache() def start_wnm_ap(apdev, bss_transition=True, time_adv=False, ssid=None, wnm_sleep_mode=False, wnm_sleep_mode_no_keys=False, rsn=False,