summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-20 02:24:29 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-20 02:24:29 +0000
commit7fab63623e7703040d99e7eecc88bb7c58e32fa1 (patch)
treee8b39241f8291bc654796eb76649bba9bf992faa /sys
parent9c24997b16e7dbd5243d0cccaf27d7cf55309557 (diff)
we'd like to show if the nic has link regardless of whether the interface
is up or not.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index a18e4f8f422..b7ed91f80cf 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.30 2007/04/20 01:38:32 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.31 2007/04/20 02:24:28 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -657,7 +657,7 @@ tht_media_status(struct ifnet *ifp, struct ifmediareq *imr)
tht_link_state(sc);
- if (LINK_STATE_IS_UP(ifp->if_link_state) && ifp->if_flags & IFF_UP)
+ if (LINK_STATE_IS_UP(ifp->if_link_state))
imr->ifm_status |= IFM_ACTIVE;
}