From: "John W. Linville" <linville@tuxdriver.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com,
Francisco Pina Martins <f.pinamartins@gmail.com>,
Andreas Hartmann <andihartmann@01019freenet.de>,
Felix Fietkau <nbd@openwrt.org>
Subject: Re: [PATCH 2/2] Revert: "rt2x00: Don't let mac80211 send a BAR when an AMPDU subframe fails"
Date: Mon, 3 Dec 2012 10:27:23 -0500 [thread overview]
Message-ID: <20121203152723.GB26027@tuxdriver.com> (raw)
In-Reply-To: <20121203115903.GB2490@redhat.com>
Johannes, maybe you should take this through the mac80211 tree,
since it depens on the other patch?
John
On Mon, Dec 03, 2012 at 12:59:04PM +0100, Stanislaw Gruszka wrote:
> This revert:
>
> commit be03d4a45c09ee5100d3aaaedd087f19bc20d01f
> Author: Andreas Hartmann <andihartmann@01019freenet.de>
> Date: Tue Apr 17 00:25:28 2012 +0200
>
> rt2x00: Don't let mac80211 send a BAR when an AMPDU subframe fails
>
> To fix problem workaround by above commit use
> IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL flag (see change log for
> "mac80211: introduce IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL" patch).
>
> Resolve: https://bugzilla.kernel.org/show_bug.cgi?id=42828
> Bisected-by: Francisco Pina Martins <f.pinamartins@gmail.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> ---
> drivers/net/wireless/rt2x00/rt2800lib.c | 3 ++-
> drivers/net/wireless/rt2x00/rt2x00dev.c | 7 +++----
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index 59474ae..175a9b9 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -5036,7 +5036,8 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
> IEEE80211_HW_SUPPORTS_PS |
> IEEE80211_HW_PS_NULLFUNC_STACK |
> IEEE80211_HW_AMPDU_AGGREGATION |
> - IEEE80211_HW_REPORTS_TX_ACK_STATUS;
> + IEEE80211_HW_REPORTS_TX_ACK_STATUS |
> + IEEE80211_HW_TEARDOWN_AGGR_ON_BAR_FAIL;
>
> /*
> * Don't set IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING for USB devices
> diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
> index 69097d1..b0183d1 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
> @@ -391,10 +391,9 @@ void rt2x00lib_txdone(struct queue_entry *entry,
> tx_info->flags |= IEEE80211_TX_STAT_AMPDU;
> tx_info->status.ampdu_len = 1;
> tx_info->status.ampdu_ack_len = success ? 1 : 0;
> - /*
> - * TODO: Need to tear down BA session here
> - * if not successful.
> - */
> +
> + if (!success)
> + tx_info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK;
> }
>
> if (rate_flags & IEEE80211_TX_RC_USE_RTS_CTS) {
> --
> 1.7.4.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
next prev parent reply other threads:[~2012-12-03 15:31 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 [this message]
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
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=20121203152723.GB26027@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=andihartmann@01019freenet.de \
--cc=f.pinamartins@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@openwrt.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).