From: Jouni Malinen Date: Tue, 11 Feb 2020 05:54:47 +0000 (+0200) Subject: tests: Make gas_anqp_extra_elements more robust X-Git-Tag: hostap_2_10~1846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd900637b2d0dbc3606dc9fbffe7bf81212702c9;p=thirdparty%2Fhostap.git tests: Make gas_anqp_extra_elements more robust Explicitly flush cfg80211 scan cache for this test case since the BSS entry check might fail if there are multiple results for the same BSSID. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_gas.py b/tests/hwsim/test_gas.py index e16793236..ec132f712 100644 --- a/tests/hwsim/test_gas.py +++ b/tests/hwsim/test_gas.py @@ -1209,6 +1209,7 @@ def test_gas_anqp_extra_elements(dev, apdev): hapd = hostapd.add_ap(apdev[0], params) bssid = apdev[0]['bssid'] + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq="2412", force_scan=True) if "OK" not in dev[0].request("ANQP_GET " + bssid + " 265,266"): raise Exception("ANQP_GET command failed")