]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add more time for scan/connection
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 28 Jul 2022 13:41:23 +0000 (16:41 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 28 Jul 2022 13:41:23 +0000 (16:41 +0300)
It looks like some test cases could fail due to timeouts since the 10
second wait may not be sufficient to cover some cases where 6 GHz
channels get scanned. Increase the timeouts to avoid hitting such cases.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_scan.py
tests/hwsim/wpasupplicant.py

index 5beec4f329fd5c97b4e9489d009704bc1c86a91f..15acfe3cad3ca331e024020a6085837c20ca0737 100644 (file)
@@ -1031,7 +1031,7 @@ def _test_scan_dfs(dev, apdev, params):
 
     if "OK" not in dev[0].request("SCAN"):
         raise Exception("SCAN command failed")
-    ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"])
+    ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], timeout=15)
     if ev is None:
         raise Exception("Scan did not complete")
 
index a1f63c36edd968abee426cb452be4ced789f173d..fe189278597258f221a4d17fed19eac70c12dee9 100644 (file)
@@ -1142,7 +1142,7 @@ class WpaSupplicant:
             if "eap" in kwargs:
                 self.connect_network(id, timeout=20)
             else:
-                self.connect_network(id)
+                self.connect_network(id, timeout=15)
         else:
             self.dump_monitor()
             self.select_network(id)