tests: Make ap_hs20_fetch_osu more robust under heavy load
Use scan_for_bss() instead of scan() to avoid errors if the active scan fails, e.g., due to heavy load under parallel-vm.sh test run. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
89f20842f6
commit
0a5787162a
1 changed files with 1 additions and 1 deletions
|
@ -1924,7 +1924,7 @@ def test_ap_hs20_fetch_osu(dev, apdev):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
dev[1].scan(freq="2412")
|
dev[1].scan_for_bss(bssid, freq="2412")
|
||||||
dev[0].request("SET osu_dir " + dir)
|
dev[0].request("SET osu_dir " + dir)
|
||||||
dev[0].request("FETCH_OSU")
|
dev[0].request("FETCH_OSU")
|
||||||
if "OK" not in dev[1].request("HS20_ICON_REQUEST " + bssid + " w1fi_logo"):
|
if "OK" not in dev[1].request("HS20_ICON_REQUEST " + bssid + " w1fi_logo"):
|
||||||
|
|
Loading…
Reference in a new issue