]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_roaming_consortiums_match more robust
authorJouni Malinen <j@w1.fi>
Thu, 2 Jan 2020 20:54:29 +0000 (22:54 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 2 Jan 2020 20:54:29 +0000 (22:54 +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 6041cd310559e8f7002736fb1e65996e174fa605..a733f84f8612d296fba43a9b0a604fb2bece370e 100644 (file)
@@ -1024,6 +1024,7 @@ def test_ap_hs20_roaming_consortiums_match(dev, apdev):
     params['hessid'] = bssid
     hostapd.add_ap(apdev[0], params)
 
+    dev[0].flush_scan_cache()
     dev[0].hs20_enable()
     tests = [("112233", "112233"),
              ("ffffff,1020304050,eeeeee", "1020304050")]