提交 77fa76bb 编写于 作者: R Rui Paulo 提交者: John W. Linville

mac80211: set the AID field correctly for mesh peer frames

This sets the AID field correctly for mesh peer confirm frames.
Signed-off-by: NRui Paulo <rpaulo@gmail.com>
Signed-off-by: NJavier Cardona <javier@cozybit.com>
Reviewed-by: NAndrey Yurovsky <andrey@cozybit.com>
Tested-by: NBrian Cavagnolo <brian@cozybit.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 a6a58b4f
...@@ -181,7 +181,8 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, ...@@ -181,7 +181,8 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata,
if (action == PLINK_CONFIRM) { if (action == PLINK_CONFIRM) {
pos = skb_put(skb, 4); pos = skb_put(skb, 4);
/* two-byte status code followed by two-byte AID */ /* two-byte status code followed by two-byte AID */
memset(pos, 0, 4); memset(pos, 0, 2);
memcpy(pos + 2, &plid, 2);
} }
mesh_mgmt_ies_add(skb, sdata); mesh_mgmt_ies_add(skb, sdata);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册