diff mbox

[v2,14/20] mac80211: set the AID field correctly for mesh peer frames

Message ID 1257810418-30075-15-git-send-email-rpaulo@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Rui Paulo Nov. 9, 2009, 11:46 p.m. UTC
None
diff mbox

Patch

diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index cf12f61..ec68d20 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);
 	}