mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
6lowpan: use the PANID provided by the device instead of a static value
Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c7d0ab28b4
commit
43de7aa6ac
@ -577,10 +577,12 @@ static int lowpan_header_create(struct sk_buff *skb,
|
||||
|
||||
/* prepare wpan address data */
|
||||
sa.addr_type = IEEE802154_ADDR_LONG;
|
||||
sa.pan_id = 0xff;
|
||||
memcpy(&(sa.hwaddr), saddr, 8);
|
||||
sa.pan_id = ieee802154_mlme_ops(dev)->get_pan_id(dev);
|
||||
|
||||
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
|
||||
* corresponding short address
|
||||
|
Loading…
Reference in New Issue
Block a user