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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-12-30 22:07:27 +02:00
parent 78e931e7f9
commit 7aa03cfa7b

View file

@ -918,6 +918,7 @@ def test_ap_hs20_eap_tls(dev, apdev):
params['nai_realm'] = ["0,example.com,13[5:6]"] params['nai_realm'] = ["0,example.com,13[5:6]"]
hostapd.add_ap(apdev[0], params) hostapd.add_ap(apdev[0], params)
dev[0].flush_scan_cache()
dev[0].hs20_enable() dev[0].hs20_enable()
dev[0].add_cred_values({'realm': "example.com", dev[0].add_cred_values({'realm': "example.com",
'username': "certificate-user", 'username': "certificate-user",