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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-02-27 21:07:54 +02:00
parent 32360ad498
commit 8ea3561c6c

View file

@ -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"""