diff options
author | Thomas Pedersen <thomas@cozybit.com> | 2011-10-26 17:47:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-08 15:54:33 -0500 |
commit | 176f36086e8a00bdf701dc6e4c5a8784ef6529df (patch) | |
tree | 808f70cf8db3eff72f66941516a3d39594ad6992 /net/mac80211/mesh_plink.c | |
parent | 42e7aa771196d8129d9deaee950b3177a443b8cf (diff) |
mac80211: add HT IEs to mesh frames
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Ashok Nagarajan <anagar6@uic.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 351e48c9710c..986af8acc49e 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -169,6 +169,8 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, | |||
169 | 2 + (IEEE80211_MAX_SUPP_RATES - 8) + | 169 | 2 + (IEEE80211_MAX_SUPP_RATES - 8) + |
170 | 2 + sdata->u.mesh.mesh_id_len + | 170 | 2 + sdata->u.mesh.mesh_id_len + |
171 | 2 + sizeof(struct ieee80211_meshconf_ie) + | 171 | 2 + sizeof(struct ieee80211_meshconf_ie) + |
172 | 2 + sizeof(struct ieee80211_ht_cap) + | ||
173 | 2 + sizeof(struct ieee80211_ht_info) + | ||
172 | 2 + 8 + /* peering IE */ | 174 | 2 + 8 + /* peering IE */ |
173 | sdata->u.mesh.ie_len); | 175 | sdata->u.mesh.ie_len); |
174 | if (!skb) | 176 | if (!skb) |
@@ -241,6 +243,13 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, | |||
241 | memcpy(pos, &reason, 2); | 243 | memcpy(pos, &reason, 2); |
242 | pos += 2; | 244 | pos += 2; |
243 | } | 245 | } |
246 | |||
247 | if (action != WLAN_SP_MESH_PEERING_CLOSE) { | ||
248 | if (mesh_add_ht_cap_ie(skb, sdata) || | ||
249 | mesh_add_ht_info_ie(skb, sdata)) | ||
250 | return -1; | ||
251 | } | ||
252 | |||
244 | if (mesh_add_vendor_ies(skb, sdata)) | 253 | if (mesh_add_vendor_ies(skb, sdata)) |
245 | return -1; | 254 | return -1; |
246 | 255 | ||