From: Bjørn Mork Date: Fri, 30 Aug 2013 16:08:51 +0000 (+0200) Subject: net: libertas: inherit addr_assign_type along with dev_addr X-Git-Tag: next-20130912~156^2~88^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d32a96e26acce17c565480363a1078f0c9e677f1;p=karo-tx-linux.git net: libertas: inherit addr_assign_type along with dev_addr A device inheriting a random or set address should reflect this in its addr_assign_type. Acked-by: John W. Linville Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller --- diff --git a/drivers/net/wireless/libertas/mesh.c b/drivers/net/wireless/libertas/mesh.c index efae07e05c80..6fef746345bc 100644 --- a/drivers/net/wireless/libertas/mesh.c +++ b/drivers/net/wireless/libertas/mesh.c @@ -1017,7 +1017,7 @@ static int lbs_add_mesh(struct lbs_private *priv) mesh_dev->netdev_ops = &mesh_netdev_ops; mesh_dev->ethtool_ops = &lbs_ethtool_ops; - memcpy(mesh_dev->dev_addr, priv->dev->dev_addr, ETH_ALEN); + eth_hw_addr_inherit(mesh_dev, priv->dev); SET_NETDEV_DEV(priv->mesh_dev, priv->dev->dev.parent);