]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_connect_no_full_match more robust
authorJouni Malinen <jouni@codeaurora.org>
Thu, 23 Jan 2020 14:54:45 +0000 (16:54 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jan 2020 14:54:45 +0000 (16:54 +0200)
Explicitly clear cfg80211 scan cache to avoid issues with old BSS
entries from previous test cases.

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

index ff84bb4326fd18d08ed59bdd2edeac9d9514a626..374ba2278f11ca1585405c2b031094514bde77b5 100644 (file)
@@ -1273,6 +1273,7 @@ def test_ap_hs20_connect_no_full_match(dev, apdev):
     params['anqp_3gpp_cell_net'] = "555,444"
     hostapd.add_ap(apdev[0], params)
 
+    dev[0].flush_scan_cache()
     dev[0].hs20_enable()
 
     vals = {'username': "user",