diff options
author | 2004-09-14 22:39:03 +0000 | |
---|---|---|
committer | 2004-09-14 22:39:03 +0000 | |
commit | 24fb32e3a166adc0a81e05497a18e48e31f1fdf5 (patch) | |
tree | 4a5b2b0125ef8ac92e13944e66b2fe9d9df4a4f4 | |
parent | IdCache module, that deals with uid/gid caches. (diff) | |
download | wireguard-openbsd-24fb32e3a166adc0a81e05497a18e48e31f1fdf5.tar.xz wireguard-openbsd-24fb32e3a166adc0a81e05497a18e48e31f1fdf5.zip |
Call tl_ifmedia_upd() in tl_init() for cards with bitrate devices
From FreeBSD
-rw-r--r-- | sys/dev/pci/if_tl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c index dee8cceb9c2..8b05c8dfd88 100644 --- a/sys/dev/pci/if_tl.c +++ b/sys/dev/pci/if_tl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tl.c,v 1.31 2003/08/19 14:01:35 mpech Exp $ */ +/* $OpenBSD: if_tl.c,v 1.32 2004/09/14 22:39:03 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1702,8 +1702,11 @@ void tl_init(xsc) CMD_SET(sc, TL_CMD_RT); CSR_WRITE_4(sc, TL_CH_PARM, vtophys(&sc->tl_ldata->tl_rx_list[0])); - if (!sc->tl_bitrate) + if (!sc->tl_bitrate) { mii_mediachg(&sc->sc_mii); + } else { + tl_ifmedia_upd(ifp); + } /* Send the RX go command */ CMD_SET(sc, TL_CMD_GO|TL_CMD_NES|TL_CMD_RT); |