summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ti.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-03-16 02:32:38 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-03-16 02:32:38 +0000
commit1ef57375f0170e1f2bda8e7803a21b61d8e927f7 (patch)
treec2a2fc9d666fe9ac122d6d0c32765a85883fdbee /sys/dev/pci/if_ti.c
parent7c8598ccd81077039a136903a78ae47a6756e17e (diff)
if the link is down then show a media status of none.
Diffstat (limited to 'sys/dev/pci/if_ti.c')
-rw-r--r--sys/dev/pci/if_ti.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c
index 40c23386a14..3150672c1d7 100644
--- a/sys/dev/pci/if_ti.c
+++ b/sys/dev/pci/if_ti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ti.c,v 1.77 2006/03/16 02:23:53 brad Exp $ */
+/* $OpenBSD: if_ti.c,v 1.78 2006/03/16 02:32:37 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -2402,8 +2402,10 @@ ti_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
ifmr->ifm_status = IFM_AVALID;
ifmr->ifm_active = IFM_ETHER;
- if (sc->ti_linkstat == TI_EV_CODE_LINK_DOWN)
+ if (sc->ti_linkstat == TI_EV_CODE_LINK_DOWN) {
+ ifmr->ifm_active |= IFM_NONE;
return;
+ }
ifmr->ifm_status |= IFM_ACTIVE;