From 1ef57375f0170e1f2bda8e7803a21b61d8e927f7 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 16 Mar 2006 02:32:38 +0000 Subject: if the link is down then show a media status of none. --- sys/dev/pci/if_ti.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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; -- cgit v1.2.3