]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix the cleanup at the end of scan_setband
authorJouni Malinen <j@w1.fi>
Sun, 21 Feb 2021 14:58:33 +0000 (16:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Feb 2021 14:58:33 +0000 (16:58 +0200)
The iteration of WpaSupplicant instances used incorrect variable and
ended up cleaning up only the wlan5 interface. This left unexpected
setband parameter for wlan0/wlan1/wlan2 which could result in
consecutive test cases failing due to scan not finding the expected
BSSs.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_scan.py

index b0d5a64e4aac02ca98f60a24ff25daec6237a8a7..24a7903ab217b5cada0b5ae56231b3d2327d6022 100644 (file)
@@ -729,7 +729,7 @@ def test_scan_setband(dev, apdev):
         if hapd2:
             hapd2.request("DISABLE")
         subprocess.call(['iw', 'reg', 'set', '00'])
-        for i in devs:
+        for d in devs:
             d.request("SET setband AUTO")
             d.flush_scan_cache()