]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix sigma_dut_ap_dpp_tcp_enrollee_init to stop hostapd
authorJouni Malinen <j@w1.fi>
Sat, 27 Feb 2021 19:07:54 +0000 (21:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 27 Feb 2021 19:07:54 +0000 (21:07 +0200)
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>
tests/hwsim/test_sigma_dut.py

index 8bf06e0783401635c6dcc799f4bed3161540f122..c1b4c86d8ba17b51b131d6b90a004b2356224f98 100644 (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"""