]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_eap_tls more robust
authorJouni Malinen <j@w1.fi>
Mon, 30 Dec 2019 20:07:27 +0000 (22:07 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Dec 2019 20:07:27 +0000 (22:07 +0200)
Explicitly clear cfg80211 scan cache to avoid issues with old BSS
entries from previous test cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

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