summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-05-13 00:52:13 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-05-13 00:52:13 +0000
commit887b8796fcd8440160b1d58d410344326dd9a53e (patch)
tree8bff5b541619e2607a9ab6899116a108d774e10d /sys
parent63cd3ec9c24bc4a9576abdd6511cf87a6a5166d7 (diff)
Also report the duplex state of the connection when calling
if_link_state_change() which is always full duplex for tht(4). ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_tht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 3adeb546d57..87d08f0c24d 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.116 2008/05/12 10:02:42 kettenis Exp $ */
+/* $OpenBSD: if_tht.c,v 1.117 2008/05/13 00:52:12 brad Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1775,14 +1775,14 @@ tht_link_state(struct tht_softc *sc)
return;
if (tht_read(sc, THT_REG_MAC_LNK_STAT) & THT_REG_MAC_LNK_STAT_LINK)
- link_state = LINK_STATE_UP;
+ link_state = LINK_STATE_FULL_DUPLEX;
if (ifp->if_link_state != link_state) {
ifp->if_link_state = link_state;
if_link_state_change(ifp);
}
- if (ifp->if_link_state == LINK_STATE_UP)
+ if (LINK_STATE_IS_UP(ifp->if_link_state))
ifp->if_baudrate = IF_Gbps(10);
else
ifp->if_baudrate = 0;