]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_nai_realms more robust
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2019 22:34:25 +0000 (00:34 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2019 22:34:25 +0000 (00:34 +0200)
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>
tests/hwsim/test_ap_hs20.py

index c33e0dcae09ddf7db8c99d10192c1f93ff4a94c1..864064b3d7587f8f3c82ee7c77be6f6b22ed47b1 100644 (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]"]
     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",