From dd900637b2d0dbc3606dc9fbffe7bf81212702c9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 11 Feb 2020 07:54:47 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_gas.py | 1 + 1 file changed, 1 insertion(+) 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")