]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Flush scan results in more Hotspot 2.0 test cases
authorJouni Malinen <jouni@codeaurora.org>
Fri, 10 Jan 2020 20:55:44 +0000 (22:55 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 10 Jan 2020 20:55:44 +0000 (22:55 +0200)
This makes testing of INTERWORKING_CONNECT more robust.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_hs20.py

index a733f84f8612d296fba43a9b0a604fb2bece370e..ff84bb4326fd18d08ed59bdd2edeac9d9514a626 100644 (file)
@@ -798,6 +798,7 @@ def eap_test(dev, ap, eap_params, method, user, release=0):
         params['hs20_release'] = str(release)
     hapd = hostapd.add_ap(ap, params)
 
+    dev.flush_scan_cache()
     dev.hs20_enable()
     dev.add_cred_values({'realm': "example.com",
                          'ca_cert': "auth_serv/ca.pem",