diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-02-22 03:19:12 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-02-22 03:19:12 +0000 |
commit | 8cf9c18e3b123f00390de8adcd499469b53f0e4c (patch) | |
tree | 4aec5d33bb16a973f7b4e7934adb28ec8ec17b40 /sys/dev/pci | |
parent | b8f80c4d8e31d1637fb42d3a695de29274ed1565 (diff) |
update the media settings after MAC setup.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 53fa4e342cd..e4790382cec 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.44 2006/02/21 20:52:15 damien Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.45 2006/02/22 03:19:11 brad Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -1014,8 +1014,6 @@ nfe_init(struct ifnet *ifp) nfe_stop(ifp, 0); - nfe_ifmedia_upd(ifp); - NFE_WRITE(sc, NFE_TX_UNK, 0); NFE_WRITE(sc, NFE_STATUS, 0); @@ -1111,6 +1109,8 @@ nfe_init(struct ifnet *ifp) /* enable interrupts */ NFE_WRITE(sc, NFE_IRQ_MASK, NFE_IRQ_WANTED); + nfe_ifmedia_upd(ifp); + timeout_add(&sc->sc_tick_ch, hz); ifp->if_flags |= IFF_RUNNING; |