From: Jouni Malinen Date: Sun, 22 Dec 2024 10:19:15 +0000 (+0200) Subject: tests: Stop sigma_dut stated hostapd based on ap_reset_default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9297bf21f5b66450f9040684a5f3ae3d96984d0c;p=thirdparty%2Fhostap.git tests: Stop sigma_dut stated hostapd based on ap_reset_default Previously, this was done only based on ap_config_commit, but sigma_dut might start hostapd even without that command, e.g., when using DPP. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 6291a52b6..99d4ac1b2 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -90,6 +90,8 @@ class SigmaDut: def run_cmd(self, cmd, port=9000, timeout=2, dump_dev=None): if cmd.startswith('ap_config_commit'): self.ap = True + if cmd.startswith('ap_reset_default'): + self.ap = True sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP) sock.settimeout(1 if dump_dev else timeout)