[PATCH 5/6] tests: ap_csa channel switch inc timeout for remote tests

Jonathan Afek jonathan at wizery.com
Tue Jun 7 06:42:42 PDT 2016

The ap_csa tests are testing the channel switch functionality.
After performing a channel switch the test used to sleep for 0.1
seconds. For real hw the operation takes a bit longer so the
timeout is increased to 1 second.

Signed-off-by: Jonathan Afek <jonathanx.afek at intel.com>
 tests/hwsim/test_ap_csa.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_ap_csa.py b/tests/hwsim/test_ap_csa.py
index 02943ae..7ff94a6 100644
--- a/tests/hwsim/test_ap_csa.py
+++ b/tests/hwsim/test_ap_csa.py
@@ -27,7 +27,7 @@ def switch_channel(ap, count, freq):
         raise Exception("CSA finished event timed out")
     if "freq=" + str(freq) not in ev:
         raise Exception("Unexpected channel in CSA finished event")
-    time.sleep(0.1)
+    time.sleep(1)
 # This function checks whether the provided dev, which may be either
 # WpaSupplicant or Hostapd supports CSA.

More information about the Hostap mailing list