]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Python3 does not allow mixed indentation
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 24 Jan 2019 07:45:49 +0000 (16:45 +0900)
committerJouni Malinen <j@w1.fi>
Sat, 26 Jan 2019 11:04:38 +0000 (13:04 +0200)
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
tests/hwsim/test_macsec.py
tests/hwsim/test_rrm.py

index 8de4bf05126170c935ef242026da57979b9a2573..871e465ac224f6b05931273ea680328b38007dcf 100644 (file)
@@ -509,13 +509,13 @@ def write_conf(conffile, mka_priority=None):
         f.write("ap_scan=0\n")
         f.write("fast_reauth=1\n")
         f.write("network={\n")
-       f.write("   key_mgmt=NONE\n")
-       f.write("   mka_cak=000102030405060708090a0b0c0d0e0f\n")
-       f.write("   mka_ckn=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\n")
+        f.write("   key_mgmt=NONE\n")
+        f.write("   mka_cak=000102030405060708090a0b0c0d0e0f\n")
+        f.write("   mka_ckn=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f\n")
         if mka_priority is not None:
             f.write("   mka_priority=%d\n" % mka_priority)
-       f.write("   eapol_flags=0\n")
-       f.write("   macsec_policy=1\n")
+        f.write("   eapol_flags=0\n")
+        f.write("   macsec_policy=1\n")
         f.write("}\n")
 
 def run_macsec_psk_ns(dev, apdev, params):
index e498672c39dad49c8b7c3efb4e4fa644a2837ce8..35de1850cdc53e47cd7f4cce097f97e2630f2529 100644 (file)
@@ -721,8 +721,8 @@ class BeaconReport:
                 # 2 = all fixed fields and all elements
                 # Fixed fields: Timestamp[8] BeaconInt[2] CapabInfo[2]
                 self.frame_body = report[0:elen]
-           if eid == 2:
-               self.frame_body_fragment_id = report[0:elen]
+            if eid == 2:
+                self.frame_body_fragment_id = report[0:elen]
             if eid == 164:
                 self.last_indication = report[0:elen]
             report = report[elen:]