Patch "mac80211: Suppress NEW_PEER_CANDIDATE event if no room" has been added to the 3.18-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mac80211: Suppress NEW_PEER_CANDIDATE event if no room
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mac80211-suppress-new_peer_candidate-event-if-no-room.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Nov 28 10:58:31 CET 2017
From: Masashi Honma <[email protected]>
Date: Wed, 30 Nov 2016 09:06:04 +0900
Subject: mac80211: Suppress NEW_PEER_CANDIDATE event if no room
From: Masashi Honma <[email protected]>
[ Upstream commit 11197d006bcfabf0173a7820a163fcaac420d10e ]
Previously, kernel sends NEW_PEER_CANDIDATE event to user land even if the found peer does not have any room to accept other peer. This causes continuous connection trials.
--- net/mac80211/mesh_plink.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
net/mac80211/mesh_plink.c +8 -6
@@ -448,12 +448,14 @@ mesh_sta_info_alloc(struct ieee80211_sub/* Userspace handles station allocation */ if (sdata->u.mesh.user_mpm || - sdata->u.mesh.security &IEEE80211_MESH_SEC_AUTHED ) -cfg80211_notify_new_peer_candidate (sdata->dev, addr, - elems->ie_start, - elems->total_len, -GFP_KERNEL ); -else + sdata->u.mesh.security &IEEE80211_MESH_SEC_AUTHED ) { +if (mesh_peer_accepts_plinks (elems) && +mesh_plink_availables (sdata)) +cfg80211_notify_new_peer_candidate (sdata->dev, addr, + elems->ie_start, + elems->total_len, +GFP_KERNEL ); + }else sta =__mesh_sta_info_alloc (sdata, addr);return sta;
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/mac80211-suppress-new_peer_candidate-event-if-no-room.patch queue-3.18/mac80211-remove-invalid-flag-operations-in-mesh-tsf-synchronization.patch