]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use consistent indentation level for clear_regdom_state()
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 29 May 2024 10:21:02 +0000 (13:21 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 29 May 2024 10:21:02 +0000 (13:21 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_wnm.py

index 6a65ca800b3abc7272bd2c8a7241ec08ae7c2f2d..4eae99fa47016be395a691cb30617c10b17acbc4 100644 (file)
@@ -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,