]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Stop sigma_dut stated hostapd based on ap_reset_default
authorJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 10:19:15 +0000 (12:19 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 10:19:15 +0000 (12:19 +0200)
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 <j@w1.fi>
tests/hwsim/test_sigma_dut.py

index 6291a52b65a2650e00f6353453948fad75505a33..99d4ac1b28247e973b9f305336c86e0a9809de34 100644 (file)
@@ -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)