From e5d9f99b3f1d7ab78ae07a1bf8414bd514c8ecea Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 28 Dec 2019 00:34:25 +0200 Subject: [PATCH] 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 --- 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 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",