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:
parent
ceda1e7c3e
commit
a264700b00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170794
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user