From: Christian Lamparter <chunkeey@googlemail.com>
To: Emmanuel Grumbach <egrumbach@gmail.com>
Cc: "Johannes Berg" <johannes@sipsolutions.net>,
"Sean Patrick Santos" <quantheory@gmail.com>,
linux-wireless@vger.kernel.org, nbd@openwrt.org,
helmut.schaa@googlemail.com, mar.kolya@gmail.com,
"Per-Erik Westerberg" <per-erik.westerberg@bredband.net>,
"Mikołaj Kuligowski" <mikolaj.q@wp.pl>
Subject: Re: [RFC v3] mac80211: follow 802.11-2007 11.5.3 Error recovery upon HT BA failure
Date: Sun, 10 Jun 2012 14:20:28 +0200 [thread overview]
Message-ID: <201206101420.30607.chunkeey@googlemail.com> (raw)
In-Reply-To: <CANUX_P3smm6Pci-69aXA+PmW23nUSg-s2LGSv5Mn_rvTF-Q9-Q@mail.gmail.com>
On Sunday 10 June 2012 07:13:25 Emmanuel Grumbach wrote:
> > > But that notification trap would also have to call some function
> > > in the stack, and the drivers that don't have it (or don't
> > > implement it yet) need something more like this patch?
> >
> > (see v3 attached to this mail).
> >
> > Yes, drivers that don't pass BAs to the stack and won't call
> > ieee80211_ba_notification will have their BA sessions "removed" in v3.
> > Of course, we can also retain the old behavoir and reset the
> > tx ba session timeout until we know we don't break anything.
>
> But if the peer acked a packet sent in a BA session, then it must send
> a BA (spec AFAIK), so when the driver calls ieee80211_tx_status at the
> originator side, mac80211 can assume that a BA was received, right?
Not necessarily, some wifi devices (especially USB) just don't provide
a status report. I think rtlwifi is a example for this case, since it
just sticks "STAT_ACK" on every package.
(Also, when the signal is bad, some devices fall back to legacy (retry)
rates and abandon aggregation at least for the time... so no, we
have to look elsewhere. Furthermore, I haven't found any
references in the spec that explicitly says that you can't
do that (e.g. A-MSDU vs A-MPDU mixed, etc...), so do you know
the paragraph that says BAs and normal acks can't be mixed?)
> Even if you still want a specific notification from the driver to
> mac80211, what about adding it to ieee80211_tx_info.status ?
> We have a trade-off here. We can have a new notification which is a
> new API (which is a disadvantage in terms of runtime and design) but
> can be called once per batch: meaning that we will reset the the timer
> once every 15 packets or so. Or we can have a bit in the
> ieee80211_tx_info.status which would be in every packet, but then, no
> need for new API.
> Maybe the best way is to have the driver set the new bit in
> ieee80211_tx_info.status only for the last packet of the batch (or the
> first, whatever).
If you look in ieee80211_tx_prep_agg you'll see that in the current
design the timer is already updated for every frame as well. So if
we just move this to a different place so the "cost" should remain
the same, right?
Regards,
Christian
next prev parent reply other threads:[~2012-06-10 12:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 6:53 Sean Patrick Santos
2012-06-07 13:18 ` carl9170 issue Christian Lamparter
2012-06-07 19:31 ` Sean Patrick Santos
2012-06-08 7:57 ` Sean Patrick Santos
2012-06-09 0:18 ` BA session issue due to old BARs? Christian Lamparter
2012-06-09 1:11 ` [RFC] mac80211: follow 802.11-2007 11.5.3 Error recovery upon HT BA failure Christian Lamparter
2012-06-09 7:59 ` Johannes Berg
2012-06-09 12:14 ` [RFC v2] " Christian Lamparter
2012-06-09 12:28 ` Johannes Berg
2012-06-09 14:01 ` [RFC v3] " Christian Lamparter
2012-06-10 5:13 ` Emmanuel Grumbach
2012-06-10 12:20 ` Christian Lamparter [this message]
2012-06-10 18:55 ` Emmanuel Grumbach
2012-06-09 12:20 ` BA session issue due to old BARs? Helmut Schaa
2012-06-09 14:23 ` Christian Lamparter
2012-06-09 14:55 ` Felix Fietkau
2012-06-09 17:40 ` Christian Lamparter
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=201206101420.30607.chunkeey@googlemail.com \
--to=chunkeey@googlemail.com \
--cc=egrumbach@gmail.com \
--cc=helmut.schaa@googlemail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=mar.kolya@gmail.com \
--cc=mikolaj.q@wp.pl \
--cc=nbd@openwrt.org \
--cc=per-erik.westerberg@bredband.net \
--cc=quantheory@gmail.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).