From: Jouni Malinen Date: Thu, 23 Jan 2020 14:54:45 +0000 (+0200) Subject: tests: Make ap_hs20_connect_no_full_match more robust X-Git-Tag: hostap_2_10~1931 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca10117cd74152cc6086f3999a29412a59487931;p=thirdparty%2Fhostap.git tests: Make ap_hs20_connect_no_full_match 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 ff84bb432..374ba2278 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -1273,6 +1273,7 @@ def test_ap_hs20_connect_no_full_match(dev, apdev): params['anqp_3gpp_cell_net'] = "555,444" hostapd.add_ap(apdev[0], params) + dev[0].flush_scan_cache() dev[0].hs20_enable() vals = {'username': "user",