Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: John Linville <linville@tuxdriver.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] mac80211: Stop TX BA session if buf_size is zero
Date: Mon, 08 Aug 2011 10:50:42 +0200	[thread overview]
Message-ID: <1312793442.4372.12.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1311675508-29005-1-git-send-email-helmut.schaa@googlemail.com> (sfid-20110726_121902_594343_0F5FD36E)

On Tue, 2011-07-26 at 12:18 +0200, Helmut Schaa wrote:
> If we receive an ADDBA response with status code 0 and a buf_size of 0
> we should stop the TX BA session as otherwise we'll end up queuing
> frames in ieee80211_tx_prep_agg forever instead of sending them out as
> non AMPDUs.
> 
> This fixes a problem with AVM Fritz Stick N wireless devices where
> frames to this device are not transmitted anymore by mac80211.

I guess this is acceptable since it shouldn't be happening anyway.

Acked-by: Johannes Berg <johannes@sipsolutions.net>

> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
> ---
>  net/mac80211/agg-tx.c |   18 +++++++-----------
>  1 files changed, 7 insertions(+), 11 deletions(-)
> 
> diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
> index c8be8ef..b7075f3 100644
> --- a/net/mac80211/agg-tx.c
> +++ b/net/mac80211/agg-tx.c
> @@ -777,18 +777,14 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local,
>  #ifdef CONFIG_MAC80211_HT_DEBUG
>  	printk(KERN_DEBUG "switched off addBA timer for tid %d\n", tid);
>  #endif
> -
> +	/*
> +	 * IEEE 802.11-2007 7.3.1.14:
> +	 * In an ADDBA Response frame, when the Status Code field
> +	 * is set to 0, the Buffer Size subfield is set to a value
> +	 * of at least 1.
> +	 */
>  	if (le16_to_cpu(mgmt->u.action.u.addba_resp.status)
> -			== WLAN_STATUS_SUCCESS) {
> -		/*
> -		 * IEEE 802.11-2007 7.3.1.14:
> -		 * In an ADDBA Response frame, when the Status Code field
> -		 * is set to 0, the Buffer Size subfield is set to a value
> -		 * of at least 1.
> -		 */
> -		if (!buf_size)
> -			goto out;
> -
> +			== WLAN_STATUS_SUCCESS && buf_size) {
>  		if (test_and_set_bit(HT_AGG_STATE_RESPONSE_RECEIVED,
>  				     &tid_tx->state)) {
>  			/* ignore duplicate response */



      parent reply	other threads:[~2011-08-08  8:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 10:18 [PATCH 1/2] mac80211: Stop TX BA session if buf_size is zero Helmut Schaa
2011-07-26 10:18 ` [PATCH 2/2] mac80211: Don't use a buf_size=0 in ADDBA requests Helmut Schaa
2011-08-05  8:15   ` Kalle Valo
2011-08-05  8:35     ` Helmut Schaa
2011-08-05  8:54       ` Kalle Valo
2011-08-05  9:46   ` [PATCHv2 " Helmut Schaa
2011-08-08  8:29     ` Johannes Berg
2011-08-08  8:40       ` Helmut Schaa
2011-08-08  8:46         ` Johannes Berg
2011-08-08  8:50 ` Johannes Berg [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=1312793442.4372.12.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=helmut.schaa@googlemail.com \
    --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