From 63dfdabc33809d5af7f9d6a0f4167402e9ac8c09 Mon Sep 17 00:00:00 2001
From: Ralph Droms <rdroms@gmail.com>
Date: Fri, 5 Apr 2013 12:23:44 -0400
Subject: [PATCH 3/3] net/ieee802154: 6lowpan.c: This patch fixes destination
 address uncompression to send the MAC address to
 lowpan_uncompress_addr

Stateless compression mode 3 needs the MAC address from the MAC header.
This patch fixes the call to lowpan_uncompress_addr to correctly
pass the MAC address.

Signed-off-by: Ralph Droms <rdroms@cisco.com>
---
 net/ieee802154/6lowpan.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index ef742f2..ccd7308 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -931,7 +931,8 @@ lowpan_process_data(struct sk_buff *skb)
 	} else {
 		pr_debug("dest: stateless compression\n");
 		err = lowpan_uncompress_addr(skb, &hdr.daddr, lowpan_llprefix,
-				lowpan_unc_slconf[tmp], skb->data);
+					     lowpan_unc_slconf[tmp],
+					     mac_cb(skb)->da.hwaddr);
 		if (err)
 			goto drop;
 	}
-- 
1.7.7.6

