提交 11197d00 编写于 作者: M Masashi Honma 提交者: Johannes Berg

mac80211: Suppress NEW_PEER_CANDIDATE event if no room

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.
Signed-off-by: NMasashi Honma <masashi.honma@gmail.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 ebceec86
...@@ -505,12 +505,14 @@ mesh_sta_info_alloc(struct ieee80211_sub_if_data *sdata, u8 *addr, ...@@ -505,12 +505,14 @@ mesh_sta_info_alloc(struct ieee80211_sub_if_data *sdata, u8 *addr,
/* Userspace handles station allocation */ /* Userspace handles station allocation */
if (sdata->u.mesh.user_mpm || if (sdata->u.mesh.user_mpm ||
sdata->u.mesh.security & IEEE80211_MESH_SEC_AUTHED) sdata->u.mesh.security & IEEE80211_MESH_SEC_AUTHED) {
cfg80211_notify_new_peer_candidate(sdata->dev, addr, if (mesh_peer_accepts_plinks(elems) &&
elems->ie_start, mesh_plink_availables(sdata))
elems->total_len, cfg80211_notify_new_peer_candidate(sdata->dev, addr,
GFP_KERNEL); elems->ie_start,
else elems->total_len,
GFP_KERNEL);
} else
sta = __mesh_sta_info_alloc(sdata, addr); sta = __mesh_sta_info_alloc(sdata, addr);
return sta; return sta;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册