mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 11:32:04 +00:00
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 <linville@tuxdriver.com> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db181347e8
commit
d32a96e26a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user