In ate_get_mac(), try to get the mac address in the right order, at least

in the same order as it's set in ate_set_mac.
I remember a discussion about this on -arm, but apparently nothing was done.
Warner, is this wrong ?

X-MFC After:	proper review
This commit is contained in:
Olivier Houchard 2007-10-24 23:12:19 +00:00
parent 12e12ab1a8
commit b7630a1145
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172944

View File

@ -597,12 +597,12 @@ ate_get_mac(struct ate_softc *sc, u_char *eaddr)
high = RD4(sc, ETH_SA1H);
if ((low | (high & 0xffff)) == 0)
return (ENXIO);
eaddr[0] = (high >> 8) & 0xff;
eaddr[1] = high & 0xff;
eaddr[2] = (low >> 24) & 0xff;
eaddr[3] = (low >> 16) & 0xff;
eaddr[4] = (low >> 8) & 0xff;
eaddr[5] = low & 0xff;
eaddr[0] = low & 0xff;
eaddr[1] = (low >> 8) & 0xff;
eaddr[2] = (low >> 16) & 0xff;
eaddr[3] = (low >> 24) & 0xff;
eaddr[4] = high & 0xff;
eaddr[5] = (high >> 8) & 0xff;
return (0);
}