From: Bob Copeland <me@bobcopeland.com>
To: "Nishikawa, Kenzoh" <Kenzoh.Nishikawa@jp.sony.com>,
devel@lists.open80211s.org
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2] mac80211: Send peering open frame again if beacon from listen state peer is received
Date: Mon, 17 Nov 2014 08:34:18 -0500 [thread overview]
Message-ID: <20141117133418.GG11482@localhost> (raw)
In-Reply-To: <2EB4F5C65A3B8E4E92660930F4EF6B5B069684@JPYOKXMS113.jp.sony.com>
On Mon, Nov 17, 2014 at 09:35:42AM +0000, Nishikawa, Kenzoh via Devel wrote:
> Fixes the problem that a mesh peering process won't be fired again
> after the previous first peering trial fails due to like air propagation error
> if the peering is managed by user space such as wpa_supplicant.
>
> This patch works with another patch for wpa_supplicant described here
> which fires a peering process again triggered by the notice from kernel.
> http://lists.shmoo.com/pipermail/hostap/2014-November/031235.html
I think this makes sense in principle. I also checked authsae and it
should handle getting these additional events so no problems with
existing userspace.
However, some comments:
The subject doesn't really match what this does. I would also describe
the new kernel behavior in the commit log in addition to the motivation.
Maybe something like this:
mac80211: keep sending peer candidate events while in listen state
Instead of sending peer candidate events just once, send them as
long as the peer remains in the LISTEN state in the peering state
machine, when userspace is implementing the peering manager. Userspace
may silence the events from a peer by progressing the state machine or
by setting the link state to BLOCKED.
Fixes the problem that a mesh peering process won't be fired again
after the previous first peering trial fails due to like air propagation error
if the peering is managed by user space such as wpa_supplicant.
This patch works with another patch for wpa_supplicant described here
which fires a peering process again triggered by the notice from kernel.
http://lists.shmoo.com/pipermail/hostap/2014-November/031235.html
> + (sdata->u.mesh.user_mpm ||
> + sdata->u.mesh.security & IEEE80211_MESH_SEC_AUTHED))
> + cfg80211_notify_new_peer_candidate(sdata->dev, hw_addr,
> + elems->ie_start,
> + elems->total_len,
> + GFP_KERNEL);
>From a cursory glance I think this needs to be GFP_ATOMIC -- don't you get
lockdep warnings? (If not, make sure CONFIG_PROVE_LOCKING is enabled, and
that you aren't hitting other lockdep warnings prior to this code running.)
This code is in an RCU read critical section as far as I can tell.
--
Bob Copeland %% http://bobcopeland.com/
next prev parent reply other threads:[~2014-11-17 13:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-17 9:35 [PATCH v2] mac80211: Send peering open frame again if beacon from listen state peer is received Nishikawa, Kenzoh
2014-11-17 13:34 ` Bob Copeland [this message]
2014-11-18 8:52 ` Nishikawa, Kenzoh
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=20141117133418.GG11482@localhost \
--to=me@bobcopeland.com \
--cc=Kenzoh.Nishikawa@jp.sony.com \
--cc=devel@lists.open80211s.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.