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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

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 <johannes.berg@xxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux