Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306667
b: refs/heads/master
c: f5c5681
h: refs/heads/master
i:
  306665: 7993183
  306663: b78fd5d
v: v3
  • Loading branch information
Thomas Pedersen authored and John W. Linville committed May 15, 2012
1 parent 87db250 commit 25e9a30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ff44ef26afc313af667ab48fc82b6e4d8bc525b
refs/heads/master: f5c5681424299add910aad86b01d6ffe7ca02c84
18 changes: 9 additions & 9 deletions trunk/net/mac80211/mesh_plink.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,15 @@ static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata,

sta = sta_info_get(sdata, addr);
if (!sta) {
/* Userspace handles peer allocation when security is enabled */
if (sdata->u.mesh.security & IEEE80211_MESH_SEC_AUTHED) {
cfg80211_notify_new_peer_candidate(sdata->dev, addr,
elems->ie_start,
elems->total_len,
GFP_ATOMIC);
return NULL;
}

sta = mesh_plink_alloc(sdata, addr);
if (!sta)
return NULL;
Expand Down Expand Up @@ -387,15 +396,6 @@ void mesh_neighbour_update(struct ieee80211_sub_if_data *sdata,
{
struct sta_info *sta;

/* Userspace handles peer allocation when security is enabled */
if (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);
return;
}

rcu_read_lock();
sta = mesh_peer_init(sdata, hw_addr, elems);
if (!sta)
Expand Down

0 comments on commit 25e9a30

Please sign in to comment.