]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Allow more time for sigma_dut sta_reassoc commands
authorJouni Malinen <j@w1.fi>
Sat, 5 Nov 2022 11:41:02 +0000 (13:41 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 5 Nov 2022 11:43:06 +0000 (13:43 +0200)
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 <j@w1.fi>
tests/hwsim/test_sigma_dut.py

index b29e0a71e4163821fca02e6454b5b534533ebd6e..d2b6fb99bc77c27986c50c3d1f78297516823e18 100644 (file)
@@ -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",