From 961eb0872322e302a5251deacd0c65a54b794e76 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 10 Jan 2020 22:55:44 +0200 Subject: [PATCH] tests: Flush scan results in more Hotspot 2.0 test cases This makes testing of INTERWORKING_CONNECT more robust. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index a733f84f8..ff84bb432 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -798,6 +798,7 @@ def eap_test(dev, ap, eap_params, method, user, release=0): params['hs20_release'] = str(release) hapd = hostapd.add_ap(ap, params) + dev.flush_scan_cache() dev.hs20_enable() dev.add_cred_values({'realm': "example.com", 'ca_cert': "auth_serv/ca.pem",