projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d0ab2
)
6lowpan: use the PANID provided by the device instead of a static value
author
Tony Cheneau
<
[email protected]
>
Mon, 25 Mar 2013 17:59:31 +0000
(17:59 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 26 Mar 2013 16:37:58 +0000
(12:37 -0400)
Signed-off-by: Tony Cheneau <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ieee802154/6lowpan.c
patch
|
blob
|
history
diff --git
a/net/ieee802154/6lowpan.c
b/net/ieee802154/6lowpan.c
index d1d4ee69da27915de1336ff1d29f4cb761697d4b..276971ba3ade5dd998d576a8a49b9fb0f6262550 100644
(file)
--- a/
net/ieee802154/6lowpan.c
+++ b/
net/ieee802154/6lowpan.c
@@
-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;
+ 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