summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-05-17 10:12:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-05-17 10:12:54 +0000
commita13c76090ffdc67c35591e08d50e08d814eca74e (patch)
treee8b84e7db7d2a1997d8f061d0504373495f5843e
parentc67ab8b75a8aa23cd1ee0da8fb6753766c427834 (diff)
copy the lladdr from the arpcom struct onto the hardware when the interface
is brought up. this driver now supports all the features our network layer expects of it.
-rw-r--r--sys/dev/pci/if_tht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index bba5a9ce191..649de8220ec 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.101 2007/05/17 09:30:54 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.102 2007/05/17 10:12:53 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -980,6 +980,7 @@ tht_up(struct tht_softc *sc)
tht_write(sc, THT_REG_TDINTCM(0), THT_REG_TDINTCM_PKT_TH(12) |
THT_REG_TDINTCM_COAL_RC | THT_REG_TDINTCM_COAL(0x20));
+ bcopy(sc->sc_ac.ac_enaddr, sc->sc_lladdr, ETHER_ADDR_LEN);
tht_lladdr_write(sc);
/* populate rxf fifo */