From 05103c400b5ae705d9a3aea21f4f4dc540d22e6a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 25 Feb 2019 21:58:28 +0200 Subject: [PATCH] tests: More robust connect command testing 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 --- tests/hwsim/test_connect_cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_connect_cmd.py b/tests/hwsim/test_connect_cmd.py index 0c748991f..d2f66a497 100644 --- a/tests/hwsim/test_connect_cmd.py +++ b/tests/hwsim/test_connect_cmd.py @@ -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()