diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/dc/if_dc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 91d08d3..bf1d86d 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -2064,12 +2064,9 @@ dc_attach(device_t dev) #ifdef __sparc64__ /* * If this is an onboard dc(4) the station address read from - * the EEPROM is all zero and we have to get it from the fcode. + * the EEPROM is all zero and we have to get it from the FCode. */ - for (i = 0; i < (ETHER_ADDR_LEN+3)/4; i++) - if (eaddr[i] != 0) - break; - if (i >= (ETHER_ADDR_LEN+3)/4) + if (eaddr[0] == 0 && (eaddr[1] & ~0xffff) == 0) OF_getetheraddr(dev, (caddr_t)&eaddr); #endif break; |