1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

The mac address must be written a word length at a time, it was having no effect before.

MFC after:	1 week
This commit is contained in:
Andrew Thompson 2007-06-15 21:45:41 +00:00
parent ceda1e7c3e
commit a264700b00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170794

View File

@ -1306,8 +1306,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, IF_LLADDR(sc->ste_ifp)[i]);
for (i = 0; i < ETHER_ADDR_LEN; i += 2) {
CSR_WRITE_2(sc, STE_PAR0 + i,
((IF_LLADDR(sc->ste_ifp)[i] & 0xff) |
IF_LLADDR(sc->ste_ifp)[i + 1] << 8));
}
/* Init RX list */