From: Tony Cheneau Date: Mon, 25 Mar 2013 17:59:31 +0000 (+0000) Subject: 6lowpan: use the PANID provided by the device instead of a static value X-Git-Tag: MMI-PSA29.97-13-9~14469^2~336^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43de7aa6ac4e37eaf0a5e83adc0a79d61fe3a55a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 6lowpan: use the PANID provided by the device instead of a static value Signed-off-by: Tony Cheneau Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index d1d4ee69da27..276971ba3ade 100644 --- 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