]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add missing scan cache flush
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 20 Feb 2024 13:18:08 +0000 (14:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 2 Mar 2024 08:46:55 +0000 (10:46 +0200)
Otherwise a BSS from a previous test may still be in the cache.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/hwsim/test_ap_hs20.py

index 81becf04f5b0f22c0594bec04405ba69f18964da..c1aebaa854c9c5f52ac6b5ecee2f490e4666b231 100644 (file)
@@ -502,6 +502,7 @@ def test_ap_hs20_select(dev, apdev):
     params = hs20_ap_params()
     params['hessid'] = bssid
     hostapd.add_ap(apdev[0], params)
+    dev[0].flush_scan_cache()
 
     dev[0].hs20_enable()
     id = dev[0].add_cred_values({'realm': "example.com", 'username': "test",