From: Jouni Malinen Date: Sat, 5 Nov 2022 11:41:02 +0000 (+0200) Subject: tests: Allow more time for sigma_dut sta_reassoc commands X-Git-Tag: hostap_2_11~1574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3094ef80d5261c01c0739fea5533b1faed6773c;p=thirdparty%2Fhostap.git tests: Allow more time for sigma_dut sta_reassoc commands When these are issued while associated, scanning all channels can take a significant amount of time. That happened to work for existing test cases somewhat by accident since the scan was sometimes limited to only the current operating channel. However, that is now changing and the following two test cases started failing with the change, so make them wait longer: sigma_dut_sae_pw_id_ft sigma_dut_ft_rsnxe_used_mismatch Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index b29e0a71e..d2b6fb99b 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -539,7 +539,8 @@ def run_sigma_dut_sae_pw_id_ft(dev, apdev, over_ds=False): params['r1_key_holder'] = bssid hapd2 = hostapd.add_ap(apdev[1], params) bssid = hapd2.own_addr() - sigma_dut_cmd_check("sta_reassoc,interface,%s,Channel,1,bssid,%s" % (ifname, bssid)) + sigma_dut_cmd_check("sta_reassoc,interface,%s,Channel,1,bssid,%s" % (ifname, bssid), + timeout=20) dev[0].wait_connected() sigma_dut_cmd_check("sta_disconnect,interface," + ifname) @@ -5874,7 +5875,8 @@ def test_sigma_dut_ft_rsnxe_used_mismatch(dev, apdev): hapd2 = hostapd.add_ap(apdev[1], params) bssid2 = hapd2.own_addr() - sigma_dut_cmd_check("sta_reassoc,interface,%s,Channel,1,bssid,%s" % (ifname, bssid2)) + sigma_dut_cmd_check("sta_reassoc,interface,%s,Channel,1,bssid,%s" % (ifname, bssid2), + timeout=20) count = 0 for i in range(5): ev = dev[0].wait_event(["Trying to associate",