From: "John W. Linville" <linville@tuxdriver.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Eliad Peller <eliad@wizery.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: always set in_reconfig=false on wakeup
Date: Mon, 2 Jul 2012 14:17:48 -0400 [thread overview]
Message-ID: <20120702181747.GA2010@tuxdriver.com> (raw)
In-Reply-To: <1341231541.19642.3.camel@jlt3.sipsolutions.net>
On Mon, Jul 02, 2012 at 02:19:01PM +0200, Johannes Berg wrote:
> On Mon, 2012-07-02 at 15:08 +0300, Eliad Peller wrote:
> > If the interfaces were removed just before a restart
> > work was started, open_count will be 0, and most of
> > the reconfig work will be skipped, including the
> > resetting of local->in_reconfig to false.
> >
> > Leaving local->inconfig = true will result in
> > dropping any incoming packet.
> >
> > Fix it by always setting local->in_reconfig = false
> > (even if there are no active interfaces).
> >
> > Signed-off-by: Eliad Peller <eliad@wizery.com>
> > ---
> > this should go to 3.5
>
> Also looks good, thanks
>
> Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
>
> John, could you also pick this up?
>
> johannes
>
>
> > net/mac80211/util.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/net/mac80211/util.c b/net/mac80211/util.c
> > index 242ecde..e1b7c63 100644
> > --- a/net/mac80211/util.c
> > +++ b/net/mac80211/util.c
> > @@ -1411,10 +1411,10 @@ int ieee80211_reconfig(struct ieee80211_local *local)
> > if (ieee80211_sdata_running(sdata))
> > ieee80211_enable_keys(sdata);
> >
> > + wake_up:
> > local->in_reconfig = false;
> > barrier();
> >
> > - wake_up:
> > /*
> > * Clear the WLAN_STA_BLOCK_BA flag so new aggregation
> > * sessions can be established after a resume.
This doesn't apply to 3.5 -- the "local->in_reconfig = false" bit isn't there.
John
--
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-07-05 14:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-02 12:08 [PATCH] mac80211: always set in_reconfig=false on wakeup Eliad Peller
2012-07-02 12:19 ` Johannes Berg
2012-07-02 18:17 ` John W. Linville [this message]
2012-07-05 15:01 ` Eliad Peller
2012-07-05 15:09 ` Johannes Berg
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=20120702181747.GA2010@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=eliad@wizery.com \
--cc=johannes@sipsolutions.net \
--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).