From: Jouni Malinen Date: Sun, 12 Oct 2014 09:38:18 +0000 (+0300) Subject: tests: Make ap_hs20_fetch_osu more robust under heavy load X-Git-Tag: hostap_2_4~1333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5787162afeeb84b81bbe944f2981b9fd413b85;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 60dd7d31e..8bb13ccad 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -1924,7 +1924,7 @@ def test_ap_hs20_fetch_osu(dev, apdev): except: pass try: - dev[1].scan(freq="2412") + dev[1].scan_for_bss(bssid, freq="2412") dev[0].request("SET osu_dir " + dir) dev[0].request("FETCH_OSU") if "OK" not in dev[1].request("HS20_ICON_REQUEST " + bssid + " w1fi_logo"):