From: Danny Kukawka Date: Fri, 17 Feb 2012 05:43:30 +0000 (+0000) Subject: atheros eth: set addr_assign_type if random_ether_addr() used X-Git-Tag: v3.4-rc1~177^2~256 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a214fd4142d585ef2226e8ef6bc29a15403506f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed