From: Alan Ott Date: Sun, 6 Oct 2013 03:15:19 +0000 (-0400) Subject: 6lowpan: Sync default hardware address of lowpan links to their wpan X-Git-Tag: MMI-PSA29.97-13-9~13424^2~61^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab2d95df9c19f45805977be1c869ba3df9a10835;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 6lowpan: Sync default hardware address of lowpan links to their wpan When a lowpan link to a wpan device is created, set the hardware address of the lowpan link to that of the wpan device. Signed-off-by: Alan Ott Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 8f56b2b63bfb..ff41b4d60d30 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -1388,6 +1388,9 @@ static int lowpan_newlink(struct net *src_net, struct net_device *dev, entry->ldev = dev; + /* Set the lowpan harware address to the wpan hardware address. */ + memcpy(dev->dev_addr, real_dev->dev_addr, IEEE802154_ADDR_LEN); + mutex_lock(&lowpan_dev_info(dev)->dev_list_mtx); INIT_LIST_HEAD(&entry->list); list_add_tail(&entry->list, &lowpan_devices);