From 8ea3561c6c50e43b89e8ae637f4fabe2c35db67c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 Feb 2021 21:07:54 +0200 Subject: [PATCH] tests: Fix sigma_dut_ap_dpp_tcp_enrollee_init to stop hostapd This test case was missing an explicit CAPI ap_reset_default and that could result in hostapd being left running at the end of the test case. This could result in issues with following test cases if they used a new radio interface from HWSimRadio(). Signed-off-by: Jouni Malinen --- tests/hwsim/test_sigma_dut.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 8bf06e078..c1b4c86d8 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -3114,6 +3114,7 @@ def run_sigma_dut_ap_dpp_tcp_enrollee_init(dev, apdev): res = sigma_dut_cmd(cmd, timeout=10) if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res: raise Exception("Unexpected result: " + res) + sigma_dut_cmd_check("ap_reset_default") def test_sigma_dut_dpp_tcp_enrollee_init_mutual(dev, apdev): """sigma_dut DPP TCP Enrollee as initiator with mutual authentication"""