From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH] tools: delay hwsim sending frame
Date: Mon, 04 May 2020 21:21:31 +0000 [thread overview]
Message-ID: <bfdde947-203f-0ab2-c8df-1aa0679ea883@gmail.com> (raw)
In-Reply-To: <20200504201613.5314-1-prestwoj@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
Hi James,
On 5/4/20 3:16 PM, James Prestwood wrote:
> Using mac80211_hwsim can sometimes result in out of order messages
> coming from the kernel. Since mac80211_hwsim immediately sends out
> frames and the kernel keeps command responses in a separate queue,
> bad scheduling can result in these messages being out of order.
> In some cases we receive Auth/Assoc frames before the response to
> our original CMD_CONNECT. This causes autotests to fail randomly,
> some more often than others.
>
> To fix this we can introduce a small delay into hwsim. Just a 1ms
> delay makes the random failures disappear in the tests. This delay
> is also makes hwsim more realistic since actual hardware will always
> introduce some kind of delay when sending or receiving frames.
> ---
> tools/hwsim.c | 21 +++++++++++++++++----
> 1 file changed, 17 insertions(+), 4 deletions(-)
>
Applied, thanks.
Regards,
-Denis
prev parent reply other threads:[~2020-05-04 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-04 20:16 [PATCH] tools: delay hwsim sending frame James Prestwood
2020-05-04 21:21 ` Denis Kenzior [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bfdde947-203f-0ab2-c8df-1aa0679ea883@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox