linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Andreas Hartmann <andihartmann@01019freenet.de>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>,
	linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com,
	Francisco Pina Martins <f.pinamartins@gmail.com>,
	Helmut Schaa <helmut.schaa@googlemail.com>
Subject: Re: [PATCH 1/2] mac80211: introduce IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL
Date: Mon, 03 Dec 2012 18:13:52 +0100	[thread overview]
Message-ID: <50BCDDD0.7030308@openwrt.org> (raw)
In-Reply-To: <50BCB3A3.4090708@01019freenet.de>

On 2012-12-03 3:13 PM, Andreas Hartmann wrote:
> Hi Stanislaw!
> 
> Stanislaw Gruszka wrote:
>> Commit f0425beda4d404a6e751439b562100b902ba9c98 "mac80211: retry sending
>> failed BAR frames later instead of tearing down aggr" caused regression
>> on rt2x00 hardware (connection hangs).
> 
> This patch caused a problem, too, with carl9170
> (http://thread.gmane.org/gmane.linux.kernel.wireless.general/92203/focus=92376).
> How did they fix it (the thread unfortunately ends without any solution
> / patch).
> 
>> This regression was fixed by
>> commit be03d4a45c09ee5100d3aaaedd087f19bc20d01 "rt2x00: Don't let
>> mac80211 send a BAR when an AMPDU subframe fails". But the letter
>> commit, caused yet another problem reported in
>> https://bugzilla.kernel.org/show_bug.cgi?id=42828#c22
> 
> This already was a workaround as stated in the removed comment: "TODO:
> Need to tear down BA session here if not successful."
> 
> My general question is:
> Is the behaviour of f0425beda spec conform? Is it implemented correctly
> and w/o demanding any special hardware feature? If both questions can be
> answered with yes, rt2x00 should be fixed to get the same behaviour working.
> 
> If f0425beda isn't spec conform or if it expects special hardware
> features, it would be a more or less a ath9k specific "solution", which
> should be removed from mac80211 and should be moved to the driver. I'm
> thinking of this, because rt2x00 is not the only one having problems and
> Felix comment in
> http://news.gmane.org/find-root.php?group=gmane.linux.drivers.rt2x00.user&article=1383
> 
> "If you want to tear down the BA session in rt2x00, either do it in the
> driver or add a proper flag to ensure that ath9k remains unaffected by
> the change."
> 
> sounds to me really ath9k specific (what about other hardware)?
The commit f0425beda is aimed not specifically at Atheros hardware. It
is meant for any hardware that lets the driver track the Tx BA window
and has a reasonable MAC design.
The 'reasonable MAC design' part is where rt2x00 falls short. BAR Tx
status processing is just one of several places where the hardware
interface design is stupid and limiting, meaning the driver has to do
extra effort to work around that.

- Felix

      parent reply	other threads:[~2012-12-03 17:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03 11:56 [PATCH 1/2] mac80211: introduce IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL Stanislaw Gruszka
2012-12-03 11:59 ` [PATCH 2/2] Revert: "rt2x00: Don't let mac80211 send a BAR when an AMPDU subframe fails" Stanislaw Gruszka
2012-12-03 15:27   ` John W. Linville
2012-12-03 14:13 ` [PATCH 1/2] mac80211: introduce IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL Andreas Hartmann
2012-12-03 15:29   ` Christian Lamparter
2012-12-03 19:56     ` Andreas Hartmann
2012-12-03 20:21       ` Helmut Schaa
2012-12-04  9:59         ` Stanislaw Gruszka
2012-12-03 17:13   ` Felix Fietkau [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=50BCDDD0.7030308@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=andihartmann@01019freenet.de \
    --cc=f.pinamartins@gmail.com \
    --cc=helmut.schaa@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sgruszka@redhat.com \
    --cc=users@rt2x00.serialmonkey.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).