From: Jouni Malinen Date: Sun, 21 Feb 2021 14:58:33 +0000 (+0200) Subject: tests: Fix the cleanup at the end of scan_setband X-Git-Tag: hostap_2_10~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c210aed4b6b8dca8bb319b4fb0897103b84136d2;p=thirdparty%2Fhostap.git 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 --- 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()