linux/drivers/net/ethernet/atheros/atlx
Danny Kukawka 6a214fd414 atheros eth: set addr_assign_type if random_ether_addr() used
Set addr_assign_type correctly to NET_ADDR_RANDOM in case
a random MAC address was generated and assigned to the netdevice.

Fix error handling in atl1c_probe(). If atl1c_read_mac_addr()
couldn't get the hw mac address, and a random mac address get
set return the error code. Don't go to err_eeprom in
atl1c_probe(), use the generated MAC address in this case.

Reset the state to NET_ADDR_PERM as soon as the MAC get
changed via .ndo_set_mac_address.

v2: use bitops

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-02-17 15:58:06 -05:00
..
atl1.c atheros eth: set addr_assign_type if random_ether_addr() used 2012-02-17 15:58:06 -05:00
atl1.h atl*: Move the Atheros drivers 2011-08-11 16:29:59 -07:00
atl2.c net: introduce and use netdev_features_t for device features sets 2011-11-16 17:43:10 -05:00
atl2.h atl*: Move the Atheros drivers 2011-08-11 16:29:59 -07:00
atlx.c atheros eth: set addr_assign_type if random_ether_addr() used 2012-02-17 15:58:06 -05:00
atlx.h atl*: Move the Atheros drivers 2011-08-11 16:29:59 -07:00
Makefile atl*: Move the Atheros drivers 2011-08-11 16:29:59 -07:00