@@ -58,7 +58,6 @@ int lowpan_register_netdevice(struct net_device *dev,
{
int i, ret;
- dev->addr_len = EUI64_ADDR_LEN;
dev->type = ARPHRD_6LOWPAN;
dev->mtu = IPV6_MIN_MTU;
dev->priv_flags |= IFF_NO_QUEUE;
@@ -134,6 +134,7 @@ static int lowpan_newlink(struct net *src_net, struct net_device *ldev,
}
lowpan_802154_dev(ldev)->wdev = wdev;
+ ldev->addr_len = IEEE802154_ADDR_LEN;
/* Set the lowpan hardware address to the wpan hardware address. */
memcpy(ldev->dev_addr, wdev->dev_addr, IEEE802154_ADDR_LEN);
/* We need headroom for possible wpan_dev_hard_header call and tailroom
The address length for BTLE 6LoWPAN is not 8 bytes, it's 6 bytes. We need to move this setting away from generic branch. Signed-off-by: Alexander Aring <aar@pengutronix.de> --- net/6lowpan/core.c | 1 - net/ieee802154/6lowpan/core.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)