mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 23:20:05 +00:00
mac80211: set the AID field correctly for mesh peer frames
This sets the AID field correctly for mesh peer confirm frames. Signed-off-by: Rui Paulo <rpaulo@gmail.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Reviewed-by: Andrey Yurovsky <andrey@cozybit.com> Tested-by: Brian Cavagnolo <brian@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a6a58b4f14
commit
77fa76bb7f
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user