From: Jouni Malinen Date: Sat, 4 Nov 2023 10:41:02 +0000 (+0200) Subject: tests: Wait before initiating DPP from thread in sigma_dut testing X-Git-Tag: hostap_2_11~860 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=004f618613a2c3fa1a2729b4cf1b26c7685a4388;p=thirdparty%2Fhostap.git tests: Wait before initiating DPP from thread in sigma_dut testing Starting a thread to initiate DPP before starting the responder through sigma_dut can result in unexpected testing behavior since there may not be enough time to get the responder enabled before timing out som initiator actions. Wait a second at the beginning of the initiator thread in dpp_init_conf() similarly to how this was handled in other initiator-from-thread cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index e36e7923a..a981295b1 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -2726,6 +2726,7 @@ def run_sigma_dut_dpp_pkex_responder(dev, apdev, v1=False): stop_sigma_dut(sigma) def dpp_init_conf(dev, id1, conf, conf_id, extra): + time.sleep(1) logger.info("Starting DPP initiator/configurator in a thread") cmd = "DPP_AUTH_INIT peer=%d conf=%s %s configurator=%d" % (id1, conf, extra, conf_id) if "OK" not in dev.request(cmd):