- /*read the mac address from the mac table and put them into the mac table.*/
- for (i = 0; i < 6; i++)
- retval += u_boot_ethaddr[i];
-
- //TODO
- /* ethaddr not set in u-boot ? */
- if(retval == 0)
- {
- printk(KERN_INFO DRVNAME ": using default MAC address\n");
- dev->dev_addr[0] = 0x00;
- dev->dev_addr[1] = 0x11;
- dev->dev_addr[2] = 0x22;
- dev->dev_addr[3] = 0x33;
- dev->dev_addr[4] = 0x44;
- dev->dev_addr[5] = 0x55;
- } else {
- for(i = 0; i < 6; i++)
- dev->dev_addr[i] = u_boot_ethaddr[i];
+ printk(KERN_INFO "ifxmips_mii0: using mac=");
+ for (i = 0; i < 6; i++) {
+ dev->dev_addr[i] = mac_addr[i];
+ printk("%02X%c", dev->dev_addr[i], (i == 5) ? ('\n') : (':'));