/* et131x_hwaddr_init - set up the MAC Address on the ET1310 @adapter: pointer to our private adapter structure  */
void et131x_hwaddr_init(struct et131x_adapter *adapter)
/* et131x_hwaddr_init - set up the MAC Address on the ET1310 @adapter: pointer to our private adapter structure  */
void et131x_hwaddr_init(struct et131x_adapter *adapter)
{
	if (adapter->PermanentAddress[0] == 0x00 &&
	    adapter->PermanentAddress[1] == 0x00 &&
	    adapter->PermanentAddress[2] == 0x00 &&
	    adapter->PermanentAddress[3] == 0x00 &&
	    adapter->PermanentAddress[4] == 0x00 &&
	    adapter->PermanentAddress[5] == 0x00) {
		get_random_bytes(&adapter->CurrentAddress[5], 1);
		memcpy(adapter->PermanentAddress,
			adapter->CurrentAddress, ETH_ALEN);
	} else {
		memcpy(adapter->CurrentAddress,
		       adapter->PermanentAddress, ETH_ALEN);
	}
}