All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mac80211: Send peering open frame again if beacon from listen state peer is received
@ 2014-11-17  9:35 Nishikawa, Kenzoh
  2014-11-17 13:34 ` Bob Copeland
  0 siblings, 1 reply; 3+ messages in thread
From: Nishikawa, Kenzoh @ 2014-11-17  9:35 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org
  Cc: devel@lists.open80211s.org, Thomas Pedersen

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

Signed-off-by: Kenzoh Nishikawa <Kenzoh.Nishikawa at jp.sony.com>
---
net/mac80211/mesh_plink.c |    7 +++++++
1 file changed, 7 insertions(+)

diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 32c7bd0..dfc429b 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -524,6 +524,13 @@ void mesh_neighbour_update(struct ieee80211_sub_if_data *sdata,
 	    sdata->u.mesh.mshcfg.auto_open_plinks &&
 	    rssi_threshold_check(sta, sdata))
 		changed = mesh_plink_open(sta);
+	else if (sta->plink_state == NL80211_PLINK_LISTEN &&
+		(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);
 
 	ieee80211_mps_frame_release(sta, elems);
 out:


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-18  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-11-18  8:52   ` Nishikawa, Kenzoh

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.