From: Michael Buesch <mb@bu3sch.de>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] d80211: Add API to generate RTS and CTS-to-self frames
Date: Mon, 5 Feb 2007 14:31:23 +0100 [thread overview]
Message-ID: <200702051431.23796.mb@bu3sch.de> (raw)
In-Reply-To: <200702051412.50703.mb@bu3sch.de>
On Monday 05 February 2007 14:12, Michael Buesch wrote:
> +static u16 ieee80211_rts_duration(struct ieee80211_local *local,
> + size_t frame_len, int rate,
> + int erp, int short_preamble)
> +{
> + u16 dur;
> +
> + /* Data frame duration */
> + dur = ieee80211_frame_duration(local, frame_len, rate, erp, short_preamble);
> + /* ACK duration */
> + dur += ieee80211_frame_duration(local, 14, rate, erp, short_preamble);
> + /* CTS duration */
> + dur += ieee80211_frame_duration(local, 14, rate, erp, short_preamble);
Ok, I just figured out that this is wrong.
It should be length 10, as the FCS length is added in ieee80211_frame_duration.
> + return dur;
> +}
> +
> +static u16 ieee80211_ctstoself_duration(struct ieee80211_local *local,
> + size_t frame_len, int rate,
> + int erp, int short_preamble,
> + int data_requires_ack)
> +{
> + u16 dur;
> +
> + /* Data frame duration */
> + dur = ieee80211_frame_duration(local, frame_len, rate, erp, short_preamble);
> + if (data_requires_ack) {
> + /* ACK duration */
> + dur += ieee80211_frame_duration(local, 14, rate, erp, short_preamble);
> + }
Same here.
I will submit a corrected patch, soon.
But please still review this one for other bugs.
--
Greetings Michael.
next prev parent reply other threads:[~2007-02-05 13:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 13:12 [PATCH] d80211: Add API to generate RTS and CTS-to-self frames Michael Buesch
2007-02-05 13:14 ` [PATCH] bcm43xx-d80211: Use d80211 API to generate RTS/CTS frames Michael Buesch
2007-02-05 13:15 ` [PATCH] rt2x00-d80211: " Michael Buesch
2007-02-05 13:31 ` Michael Buesch [this message]
2007-02-05 13:43 ` [PATCH] d80211: Add API to generate RTS and CTS-to-self frames Johannes Berg
2007-02-05 13:53 ` Michael Buesch
2007-02-05 14:58 ` Jouni Malinen
2007-02-05 15:28 ` Michael Buesch
2007-02-05 16:47 ` Jouni Malinen
2007-02-05 16:53 ` Michael Buesch
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=200702051431.23796.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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;
as well as URLs for NNTP newsgroup(s).