From: Jouni Malinen Date: Wed, 27 Mar 2024 20:33:38 +0000 (+0200) Subject: tests: Flush scan cache to make dbus_anqp_get more reliable X-Git-Tag: hostap_2_11~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e4bff095bb07112c8cb523f776a1a3dea1a276c;p=thirdparty%2Fhostap.git tests: Flush scan cache to make dbus_anqp_get more reliable This test could have failed if scan results from a previously executed test case were still the in the driver cache. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py index f31b60eb9..2c2a2e44a 100644 --- a/tests/hwsim/test_dbus.py +++ b/tests/hwsim/test_dbus.py @@ -6283,6 +6283,7 @@ def test_dbus_anqp_get(dev, apdev): "fin:Esimerkkioperaattori"] hapd = hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].scan_for_bss(bssid, freq="2412", force_scan=True) iface.ANQPGet({"addr": bssid, "ids": dbus.Array([257], dbus.Signature("q")),