]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_cipher_mixed_wpa_wpa2 more robust
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 17:03:22 +0000 (19:03 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 17:03:22 +0000 (19:03 +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_ciphers.py

index e10927a9c734d108aa3b14e66ea63baf5fa07e3c..4e79391698ed2211e532b13f3f9492812bc88f37 100644 (file)
@@ -374,6 +374,7 @@ def test_ap_cipher_mixed_wpa_wpa2(dev, apdev):
               "rsn_pairwise": "CCMP",
               "wpa_pairwise": "TKIP"}
     hapd = hostapd.add_ap(apdev[0], params)
+    dev[0].flush_scan_cache()
     dev[0].connect(ssid, psk=passphrase, proto="WPA2",
                    pairwise="CCMP", group="TKIP", scan_freq="2412")
     status = dev[0].get_status()