Skip to content
Snippets Groups Projects
Commit 6bdeaba4 authored by Tony Cheneau's avatar Tony Cheneau Committed by David S. Miller
Browse files

6lowpan: use IEEE802154_ADDR_LEN instead of a magic number

parent ababf385
No related branches found
No related tags found
No related merge requests found
...@@ -602,7 +602,7 @@ static int lowpan_header_create(struct sk_buff *skb, ...@@ -602,7 +602,7 @@ static int lowpan_header_create(struct sk_buff *skb,
da.short_addr = IEEE802154_ADDR_BROADCAST; da.short_addr = IEEE802154_ADDR_BROADCAST;
} else { } else {
da.addr_type = IEEE802154_ADDR_LONG; da.addr_type = IEEE802154_ADDR_LONG;
memcpy(&(da.hwaddr), daddr, 8); memcpy(&(da.hwaddr), daddr, IEEE802154_ADDR_LEN);
/* request acknowledgment */ /* request acknowledgment */
mac_cb(skb)->flags |= MAC_CB_FLAG_ACKREQ; mac_cb(skb)->flags |= MAC_CB_FLAG_ACKREQ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment