From: Jouni Malinen Date: Mon, 30 Dec 2019 20:07:27 +0000 (+0200) Subject: tests: Make ap_hs20_eap_tls more robust X-Git-Tag: hostap_2_10~2039 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa03cfa7ba0da3d8c1a4d0e83308f9c9d20461d;p=thirdparty%2Fhostap.git tests: Make ap_hs20_eap_tls more robust Explicitly clear cfg80211 scan cache to avoid issues with old BSS entries from previous test cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index 8b4ab8104..6041cd310 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -918,6 +918,7 @@ def test_ap_hs20_eap_tls(dev, apdev): params['nai_realm'] = ["0,example.com,13[5:6]"] hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].hs20_enable() dev[0].add_cred_values({'realm': "example.com", 'username': "certificate-user",