Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Zhu Yi <yi.zhu@intel.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: delete addba_resp_timer when stop Tx BA session
Date: Mon, 28 Dec 2009 09:18:32 +0100	[thread overview]
Message-ID: <1261988312.22470.5.camel@johannes.local> (raw)
In-Reply-To: <1261970308-22926-1-git-send-email-yi.zhu@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]

On Mon, 2009-12-28 at 11:18 +0800, Zhu Yi wrote:
> We start an one shot addba_resp_timer in ieee80211_start_tx_ba_session
> but don't delete it in __ieee80211_stop_tx_ba_session. This will cause
> problem in suspend and resume. When suspend happens without the timer
> deleted, the timer handler will be called immediately after resume and
> messes up driver status.
> 
> See http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2134
> comment #22 for more details.

Hmm. The timer checks

        if ((*state & (HT_ADDBA_REQUESTED_MSK | HT_ADDBA_RECEIVED_MSK)) !=
                                                HT_ADDBA_REQUESTED_MSK) {

which /should/ make it a no-op in the case you mention because we tear
down sessions, or does that not reset their state properly?

Ok, so ___ieee80211_stop_tx_ba_session() doesn't, in fact, clear the
mask right away, so I think we should add HT_AGG_STATE_REQ_STOP_BA_MSK
to the code I quoted above?

In any case the del_timer_sync isn't right there and we also shouldn't
really use it (per Linus)

johannes

> Cc: Johannes Berg <johannes@sipsolutions.net>
> Signed-off-by: Zhu Yi <yi.zhu@intel.com>
> ---
>  net/mac80211/agg-tx.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
> index ceda366..d122082 100644
> --- a/net/mac80211/agg-tx.c
> +++ b/net/mac80211/agg-tx.c
> @@ -509,6 +509,8 @@ int __ieee80211_stop_tx_ba_session(struct sta_info
> *sta, u16 tid,
>  	u8 *state;
>  	int ret;
>  
> +	del_timer_sync(&sta->ampdu_mlme.tid_tx[tid]->addba_resp_timer);
> +
>  	/* check if the TID is in aggregation */
>  	state = &sta->ampdu_mlme.tid_state_tx[tid];
>  	spin_lock_bh(&sta->lock);


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2009-12-28  8:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-28  3:18 [PATCH] mac80211: delete addba_resp_timer when stop Tx BA session Zhu Yi
2009-12-28  8:18 ` Johannes Berg [this message]
2009-12-28 16:10   ` Luis R. Rodriguez

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=1261988312.22470.5.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=yi.zhu@intel.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