MFC r1.99
The mac address must be written a word length at a time, it was having no effect before.
This commit is contained in:
parent
8738b1d5e1
commit
a44651dc34
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user