From d0cd7504352a1f720ef9a6ec5ee923588059d9e1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 28 Dec 2019 19:05:50 +0200 Subject: [PATCH] tests: Make ap_hs20_roaming_consortium more robust Explicitly clear cfg80211 scan cache to avoid issues with old BSS entries from previous test cases. 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 4c1caca37..af6e348e3 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -998,6 +998,7 @@ def test_ap_hs20_roaming_consortium(dev, apdev): params['hessid'] = bssid hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].hs20_enable() for consortium in ["112233", "1020304050", "010203040506", "fedcba"]: id = dev[0].add_cred_values({'username': "user",