]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More robust owe_transition_mode* tests
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 17 Oct 2017 21:39:43 +0000 (00:39 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 17 Oct 2017 22:19:42 +0000 (01:19 +0300)
Flush old scan results in these test cases to avoid checking incorrect
scan result entry.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_owe.py

index 75ab3bdbb121a7417fb4519a735cd3b474da69a9..d154296717904fd127e34c0d338dcabb0bf9b9ad 100644 (file)
@@ -141,6 +141,7 @@ def test_owe_transition_mode_connect_cmd(dev, apdev):
 def run_owe_transition_mode(dev, apdev):
     if "OWE" not in dev[0].get_capability("key_mgmt"):
         raise HwsimSkip("OWE not supported")
+    dev[0].flush_scan_cache()
     params = { "ssid": "owe-random",
                "wpa": "2",
                "wpa_key_mgmt": "OWE",