net: set dev->addr_assign_type correctly
Not a bitfield, but a plain value. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f652151640
commit
e41b2d7fe7
@@ -655,7 +655,7 @@ ltq_etop_init(struct net_device *dev)
|
||||
|
||||
/* Set addr_assign_type here, ltq_etop_set_mac_address would reset it. */
|
||||
if (random_mac)
|
||||
dev->addr_assign_type |= NET_ADDR_RANDOM;
|
||||
dev->addr_assign_type = NET_ADDR_RANDOM;
|
||||
|
||||
ltq_etop_set_multicast_list(dev);
|
||||
err = ltq_etop_mdio_init(dev);
|
||||
|
Reference in New Issue
Block a user