diff options
author | Rui Paulo <rpaulo@gmail.com> | 2009-11-10 00:46:52 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-13 23:43:55 +0100 |
commit | 77fa76bb7f5589cd336e4da4a02e2d685b70ce0a (patch) | |
tree | 758cc540a5f3abd6a2a4a6e06a7c6e6ce43ca70c /net/mac80211/mesh_plink.c | |
parent | mac80211: properly forward the RANN IE (diff) | |
download | linux-77fa76bb7f5589cd336e4da4a02e2d685b70ce0a.tar.xz linux-77fa76bb7f5589cd336e4da4a02e2d685b70ce0a.zip |
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>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index cf12f616c5b1..ec68d2046d24 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c @@ -181,7 +181,8 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, if (action == PLINK_CONFIRM) { pos = skb_put(skb, 4); /* 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); } |