aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_plink.c
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2011-08-11 22:35:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-22 14:45:59 -0400
commit082ebb0c258d28af7452b19df9ef8b7553f37690 (patch)
treea7cb2f8e5cf55c4000b549b6ff29c1c99f447825 /net/mac80211/mesh_plink.c
parentf6a3e99da82167e066ebde975ec604638b42d816 (diff)
mac80211: fix mesh beacon format
Correct ordering of IEs in the mesh beacon while removing unneeded IEs from mesh peering frames. Set privacy bit in capability info if security is enabled. Add utility functions to aid in construction of IEs and reduce code duplication. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r--net/mac80211/mesh_plink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index f4adc0917888..e4113f243fc4 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -195,7 +195,12 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,
195 memset(pos, 0, 2); 195 memset(pos, 0, 2);
196 memcpy(pos + 2, &plid, 2); 196 memcpy(pos + 2, &plid, 2);
197 } 197 }
198 mesh_mgmt_ies_add(skb, sdata); 198 if (mesh_add_srates_ie(skb, sdata) ||
199 mesh_add_ext_srates_ie(skb, sdata) ||
200 mesh_add_rsn_ie(skb, sdata) ||
201 mesh_add_meshid_ie(skb, sdata) ||
202 mesh_add_meshconf_ie(skb, sdata))
203 return -1;
199 } 204 }
200 205
201 /* Add Peer Link Management element */ 206 /* Add Peer Link Management element */