From: Jouni Malinen Date: Fri, 27 Dec 2019 22:34:25 +0000 (+0200) Subject: tests: Make ap_hs20_nai_realms more robust X-Git-Tag: hostap_2_10~2073 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5d9f99b3f1d7ab78ae07a1bf8414bd514c8ecea;p=thirdparty%2Fhostap.git tests: Make ap_hs20_nai_realms more robust Explicitly clear cfg80211 scan cache to avoid issues from scan results from previous test cases interfering with INTERWORKING_CONNECT operation. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index c33e0dcae..864064b3d 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -980,6 +980,7 @@ def test_ap_hs20_nai_realms(dev, apdev): params['nai_realm'] = ["0,no.match.here;example.com;no.match.here.either,21[2:1][5:7]"] hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].hs20_enable() id = dev[0].add_cred_values({'realm': "example.com", 'ca_cert': "auth_serv/ca.pem",