From: Ivo van Doorn <ivdoorn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: mac80211: Set IEEE80211_TXPD_REQ_TX_STATUS for all TX frames
Date: Tue, 13 May 2008 13:46:35 +0200 [thread overview]
Message-ID: <200805131346.35897.IvDoorn@gmail.com> (raw)
In-Reply-To: <1210668171.3646.41.camel@johannes.berg>
On Tuesday 13 May 2008, Johannes Berg wrote:
> On Sun, 2008-05-11 at 14:34 +0200, Ivo van Doorn wrote:
> > All interfaces should set the IEEE80211_TXPD_REQ_TX_STATUS flag for all TX frames
> > which will force the master interface to set the IEEE80211_TX_CTL_REQ_TX_STATUS
> > flag. This in turn will allow drivers to check for that flag before reporting
> > the TX status to mac80211.
> >
> > This is very usefull when frames (like beacons, RTS and CTS-to-self) should not
> > be reported back to mac80211. Later we could add more extensive checks to
> > exclude more frames from being reported, or let mac80211 decide if it wants
> > the frame for status reporting or not.
> >
> > Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
> > ---
> > diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> > index f35eaea..0024892 100644
> > --- a/net/mac80211/tx.c
> > +++ b/net/mac80211/tx.c
> > @@ -1617,6 +1617,9 @@ int ieee80211_subif_start_xmit(struct sk_buff *skb,
> > if (ethertype == ETH_P_PAE)
> > pkt_data->flags |= IEEE80211_TXPD_EAPOL_FRAME;
> >
> > + /* Interfaces should always request a status report */
> > + pkt_data->flags |= IEEE80211_TXPD_REQ_TX_STATUS;
> > +
>
> What about monitor interfaces/injection? Do they already set it?
No, should they?
> Other than that, looks good to me, as long as you're aware that in the
> future this might be more dynamic and don't rely on it too much for
> internal housekeeping (but you seem to be according to your changelog
> entry) :)
Well it shouldn't matter if it will become more flexible, what I am looking
for is making the flag actually mean something for drivers. ;)
We could even make it so that the mac80211 tx_status handler will ignore
the frame when the flag is set so drivers won't have to look at it at all.
Ivo
next prev parent reply other threads:[~2008-05-13 11:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-11 12:34 mac80211: Set IEEE80211_TXPD_REQ_TX_STATUS for all TX frames Ivo van Doorn
2008-05-13 8:42 ` Johannes Berg
2008-05-13 11:46 ` Ivo van Doorn [this message]
2008-05-13 12:29 ` Johannes Berg
2008-05-13 12:53 ` Ivo van Doorn
2008-05-13 13:03 ` [PATCH v2] " Ivo van Doorn
2008-05-13 12:54 ` Johannes Berg
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=200805131346.35897.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=johannes@sipsolutions.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.