]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More robust connect command testing
authorJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 19:58:28 +0000 (21:58 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 19:58:28 +0000 (21:58 +0200)
Avoid an invalid failure case due to scan results being left behind from
connect_cmd_bssid_hint when executing connect_cmd_reject_assoc by
explicitly clearing the scan results from dev5. This fixes an error case
that happened with the following test case sequence:
connect_cmd_bssid_hint connect_cmd_reject_assoc

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_connect_cmd.py

index 0c748991f26e1785310f2a68ccbb92ba3f03671d..d2f66a497b2e331a1593aae43321d19192e0d99c 100644 (file)
@@ -230,3 +230,4 @@ def test_connect_cmd_bssid_hint(dev, apdev):
         wpas.dump_monitor()
     finally:
         wpas.request("AP_SCAN 1")
+    wpas.flush_scan_cache()