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 <j@w1.fi>
This commit is contained in:
parent
976c3c161f
commit
c210aed4b6
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ def test_scan_setband(dev, apdev):
|
||||||
if hapd2:
|
if hapd2:
|
||||||
hapd2.request("DISABLE")
|
hapd2.request("DISABLE")
|
||||||
subprocess.call(['iw', 'reg', 'set', '00'])
|
subprocess.call(['iw', 'reg', 'set', '00'])
|
||||||
for i in devs:
|
for d in devs:
|
||||||
d.request("SET setband AUTO")
|
d.request("SET setband AUTO")
|
||||||
d.flush_scan_cache()
|
d.flush_scan_cache()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue