aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_hwmp.c
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-09-07 20:49:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-14 13:56:50 -0400
commit2154c81c32fa44364f83218a10d8dbec4e76d4f5 (patch)
treed51234e55d24c6ff5f4849d2757b57f1d6accaac /net/mac80211/mesh_hwmp.c
parent4777be41638cfab56c78b2a764a5f83beb6cfdd2 (diff)
mac80211: Mesh data frames must have the QoS header
Per sec 7.1.3.5 of draft 12.0 of 802.11s, mesh frames indicate the presence of the mesh control header in their QoS header. Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r--net/mac80211/mesh_hwmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index 63df0bc3dba4..6df7913d7ca4 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -209,7 +209,6 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags,
209static void prepare_frame_for_deferred_tx(struct ieee80211_sub_if_data *sdata, 209static void prepare_frame_for_deferred_tx(struct ieee80211_sub_if_data *sdata,
210 struct sk_buff *skb) 210 struct sk_buff *skb)
211{ 211{
212 struct ieee80211_local *local = sdata->local;
213 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); 212 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
214 213
215 skb_set_mac_header(skb, 0); 214 skb_set_mac_header(skb, 0);
@@ -221,7 +220,7 @@ static void prepare_frame_for_deferred_tx(struct ieee80211_sub_if_data *sdata,
221 skb->priority = 7; 220 skb->priority = 7;
222 221
223 info->control.vif = &sdata->vif; 222 info->control.vif = &sdata->vif;
224 ieee80211_set_qos_hdr(local, skb); 223 ieee80211_set_qos_hdr(sdata, skb);
225} 224}
226 225
227/** 226/**