[PATCH] tests: rrm: sleep between the many good updates

Johannes Berg <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <1579086597-I3537c19232bc4e5f6f0a415deb332d97404d512e@changeid>
From: Johannes Berg <[email protected]>

These are all going to the kernel, and with powersave now
supported in hwsim, the frames are not transmitted immediately
but queued up. But the kernel has a limit of 64 queued up
frames when TX status ACK is requested, so this test fails.
Give it a minimal amount of time between frames so that they
can actually go out - 10ms for each means we get only 10 in
each beacon period before the other side wakes up and pulls
them, so we don't hit the 64 limit.

Signed-off-by: Johannes Berg <[email protected]>
---
 tests/hwsim/test_rrm.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py
index dde98932b6a6..34939e1c5129 100644
--- a/tests/hwsim/test_rrm.py
+++ b/tests/hwsim/test_rrm.py
@@ -1803,6 +1803,7 @@ def run_rrm_beacon_req_ap_errors(dev, apdev):
         raise Exception("Invalid REQ_BEACON accepted")
 
     for i in range(257):
+        time.sleep(0.01)
         if "FAIL" in hapd.request("REQ_BEACON " + addr + " 510b0000640000ffffffffffff"):
             raise Exception("REQ_BEACON failed")
         dev[0].dump_monitor()
-- 
2.24.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.