From a44651dc34b0942b4d57bb2673c22b63f76badef Mon Sep 17 00:00:00 2001 From: thompsa Date: Fri, 13 Jul 2007 01:27:45 +0000 Subject: [PATCH] MFC r1.99 The mac address must be written a word length at a time, it was having no effect before. --- sys/pci/if_ste.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index efb89fa034c7..fdfb5b7a0fc8 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -1303,8 +1303,10 @@ ste_init_locked(sc) ste_stop(sc); /* Init our MAC address */ - for (i = 0; i < ETHER_ADDR_LEN; i++) { - CSR_WRITE_1(sc, STE_PAR0 + i, IFP2ENADDR(sc->ste_ifp)[i]); + for (i = 0; i < ETHER_ADDR_LEN; i += 2) { + CSR_WRITE_2(sc, STE_PAR0 + i, + ((IFP2ENADDR(sc->ste_ifp)[i] & 0xff) | + IFP2ENADDR(sc->ste_ifp)[i + 1] << 8)); } /* Init RX list */