diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-01-04 01:47:56 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-01-04 01:47:56 +0000 |
commit | d8b4bcab1e97efcd50b4690e1ee5070b538367f2 (patch) | |
tree | 66cbf748b89f8c634240c4f799cd1c05c0269947 /sys | |
parent | b9ea6d95c7d717852f95b781edd10a5a0c55b999 (diff) |
read the hardware mac address into the drivers ac_enaddr thing rather than
a useless buffer. should hook the mac address up.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_lii.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_lii.c b/sys/dev/pci/if_lii.c index d9edd4993e6..b1790ea0863 100644 --- a/sys/dev/pci/if_lii.c +++ b/sys/dev/pci/if_lii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lii.c,v 1.3 2008/01/04 01:43:09 dlg Exp $ */ +/* $OpenBSD: if_lii.c,v 1.4 2008/01/04 01:47:55 dlg Exp $ */ /* * Copyright (c) 2007 The NetBSD Foundation. @@ -201,7 +201,6 @@ atl2_attach(struct device *parent, struct device *self, void *aux) { struct atl2_softc *sc = (struct atl2_softc *)self; struct pci_attach_args *pa = aux; - uint8_t eaddr[ETHER_ADDR_LEN]; struct ifnet *ifp = &sc->sc_ac.ac_if; pci_intr_handle_t ih; pcireg_t mem; @@ -236,7 +235,7 @@ atl2_attach(struct device *parent, struct device *self, void *aux) else sc->sc_memread = atl2_spi_read; - if (atl2_read_macaddr(sc, eaddr)) + if (atl2_read_macaddr(sc, sc->sc_ac.ac_enaddr)) return; if (pci_intr_map(pa, &ih) != 0) { @@ -283,7 +282,7 @@ atl2_attach(struct device *parent, struct device *self, void *aux) ether_ifattach(ifp); printf("%s, address %s\n", pci_intr_string(sc->sc_pc, ih), - ether_sprintf(eaddr)); + ether_sprintf(sc->sc_ac.ac_enaddr)); return; } |