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
@@ -2540,7 +2540,7 @@ static int atl1c_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
}
|
||||
if (atl1c_read_mac_addr(&adapter->hw)) {
|
||||
/* got a random MAC address, set NET_ADDR_RANDOM to netdev */
|
||||
netdev->addr_assign_type |= NET_ADDR_RANDOM;
|
||||
netdev->addr_assign_type = NET_ADDR_RANDOM;
|
||||
}
|
||||
memcpy(netdev->dev_addr, adapter->hw.mac_addr, netdev->addr_len);
|
||||
memcpy(netdev->perm_addr, adapter->hw.mac_addr, netdev->addr_len);
|
||||
|
Reference in New Issue
Block a user