From c210aed4b6b8dca8bb319b4fb0897103b84136d2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 21 Feb 2021 16:58:33 +0200 Subject: [PATCH] tests: Fix the cleanup at the end of scan_setband 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 --- tests/hwsim/test_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index b0d5a64e4..24a7903ab 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -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() -- 2.47.2