From: Ben Greear <greearb@candelatech.com>
To: greearb@candelatech.com
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Don't restart sta-timer if not associated.
Date: Thu, 14 Mar 2013 16:00:17 -0700 [thread overview]
Message-ID: <51425681.2040207@candelatech.com> (raw)
In-Reply-To: <1363299471-10442-1-git-send-email-greearb@candelatech.com>
On 03/14/2013 03:17 PM, greearb@candelatech.com wrote:
> From: Ben Greear <greearb@candelatech.com>
>
> I found another crash when deleting lots of virtual stations
> in a congested environment. I think the problem is that
> the ieee80211_mlme_notify_scan_completed could call
> ieee80211_restart_sta_timer for a non-associated interface
> that was about to be deleted.
>
> With the following patch I am unable to reproduce the
> crash.
Nevermind..this seems to break association...will work on
this some more.
Ben
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
> ---
> :100644 100644 81e0619... a1cc8c4... M net/mac80211/mlme.c
> net/mac80211/mlme.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index 81e0619..a1cc8c4 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -2931,6 +2931,9 @@ static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata)
> u32 flags;
>
> if (sdata->vif.type == NL80211_IFTYPE_STATION) {
> + if (unlikely(!sdata->u.mgd.associated))
> + return;
> +
> __ieee80211_stop_poll(sdata);
>
> /* let's probe the connection once */
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2013-03-14 23:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 22:17 [PATCH] mac80211: Don't restart sta-timer if not associated greearb
2013-03-14 23:00 ` Ben Greear [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=51425681.2040207@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
/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).