mac802154: use dev_addr_set() - manual
[linux-2.6-microblaze.git] / net / ieee802154 / 6lowpan / core.c
index 3297e7f..2cf6271 100644 (file)
@@ -157,7 +157,7 @@ static int lowpan_newlink(struct net *src_net, struct net_device *ldev,
 
        lowpan_802154_dev(ldev)->wdev = wdev;
        /* Set the lowpan hardware address to the wpan hardware address. */
-       memcpy(ldev->dev_addr, wdev->dev_addr, IEEE802154_ADDR_LEN);
+       __dev_addr_set(ldev, wdev->dev_addr, IEEE802154_ADDR_LEN);
        /* We need headroom for possible wpan_dev_hard_header call and tailroom
         * for encryption/fcs handling. The lowpan interface will replace
         * the IPv6 header with 6LoWPAN header. At worst case the 6LoWPAN