Commit 43de7aa6 authored by Tony Cheneau's avatar Tony Cheneau Committed by David S. Miller

6lowpan: use the PANID provided by the device instead of a static value

Signed-off-by: default avatarTony Cheneau <tony.cheneau@amnesiak.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7d0ab28
...@@ -577,10 +577,12 @@ static int lowpan_header_create(struct sk_buff *skb, ...@@ -577,10 +577,12 @@ static int lowpan_header_create(struct sk_buff *skb,
/* prepare wpan address data */ /* prepare wpan address data */
sa.addr_type = IEEE802154_ADDR_LONG; sa.addr_type = IEEE802154_ADDR_LONG;
sa.pan_id = 0xff; sa.pan_id = ieee802154_mlme_ops(dev)->get_pan_id(dev);
memcpy(&(sa.hwaddr), saddr, 8); memcpy(&(sa.hwaddr), saddr, 8);
/* intra-PAN communications */
da.pan_id = ieee802154_mlme_ops(dev)->get_pan_id(dev);
da.pan_id = 0xff;
/* /*
* if the destination address is the broadcast address, use the * if the destination address is the broadcast address, use the
* corresponding short address * corresponding short address
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment