diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 16:04:59 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 16:04:59 +0000 |
| commit | 4a0d6638b3bb3b7ed39b852f722e904ac9a6e603 (patch) | |
| tree | c961eb29eda0888de8f7fedb7d3eb12e58d687d3 /sys/dev/txp | |
| parent | b71ec5beb4714da1171cb0542ae0f601b91050bd (diff) | |
Notes
Diffstat (limited to 'sys/dev/txp')
| -rw-r--r-- | sys/dev/txp/if_txp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 4ddaa063f3e6..6f3429e4d37e 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -1179,12 +1179,12 @@ txp_init_locked(sc) NULL, NULL, NULL, 1); /* Set station address. */ - ((u_int8_t *)&p1)[1] = IFP2ENADDR(sc->sc_ifp)[0]; - ((u_int8_t *)&p1)[0] = IFP2ENADDR(sc->sc_ifp)[1]; - ((u_int8_t *)&p2)[3] = IFP2ENADDR(sc->sc_ifp)[2]; - ((u_int8_t *)&p2)[2] = IFP2ENADDR(sc->sc_ifp)[3]; - ((u_int8_t *)&p2)[1] = IFP2ENADDR(sc->sc_ifp)[4]; - ((u_int8_t *)&p2)[0] = IFP2ENADDR(sc->sc_ifp)[5]; + ((u_int8_t *)&p1)[1] = IF_LLADDR(sc->sc_ifp)[0]; + ((u_int8_t *)&p1)[0] = IF_LLADDR(sc->sc_ifp)[1]; + ((u_int8_t *)&p2)[3] = IF_LLADDR(sc->sc_ifp)[2]; + ((u_int8_t *)&p2)[2] = IF_LLADDR(sc->sc_ifp)[3]; + ((u_int8_t *)&p2)[1] = IF_LLADDR(sc->sc_ifp)[4]; + ((u_int8_t *)&p2)[0] = IF_LLADDR(sc->sc_ifp)[5]; txp_command(sc, TXP_CMD_STATION_ADDRESS_WRITE, p1, p2, 0, NULL, NULL, NULL, 1); |
