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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-12-28 00:34:25 +02:00
parent 68f9f480ef
commit e5d9f99b3f

View File

@ -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]"] params['nai_realm'] = ["0,no.match.here;example.com;no.match.here.either,21[2:1][5:7]"]
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()
id = dev[0].add_cred_values({'realm': "example.com", id = dev[0].add_cred_values({'realm': "example.com",
'ca_cert': "auth_serv/ca.pem", 'ca_cert': "auth_serv/ca.pem",