diff options
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 323d3d2d986f..3210dec64a6a 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -129,7 +129,7 @@ static int mac802154_wpan_mac_addr(struct net_device *dev, void *p) if (!ieee802154_is_valid_extended_unicast_addr(extended_addr)) return -EINVAL; - memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); + dev_addr_set(dev, addr->sa_data); sdata->wpan_dev.extended_addr = extended_addr; /* update lowpan interface mac address when |