From b7630a11457529c3386a2b50c19dfedb1bf014d7 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 24 Oct 2007 23:12:19 +0000 Subject: [PATCH] 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 --- sys/arm/at91/if_ate.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c index 2c905a48e90..5a9c19cbf01 100644 --- a/sys/arm/at91/if_ate.c +++ b/sys/arm/at91/if_ate.c @@ -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); }