summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornate <nate@openbsd.org>2002-04-28 20:50:17 +0000
committernate <nate@openbsd.org>2002-04-28 20:50:17 +0000
commit1c6db76bbf390dc612e8723dcfde39988c72b583 (patch)
treebbb4ad0e5ae356f1d910976b867233528c04206e /sys
parentRe-do the way that bus_dma is done for transmit. Loop over the dm_segs (diff)
downloadwireguard-openbsd-1c6db76bbf390dc612e8723dcfde39988c72b583.tar.xz
wireguard-openbsd-1c6db76bbf390dc612e8723dcfde39988c72b583.zip
use the correct ifmedia struct
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_gx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_gx.c b/sys/dev/pci/if_gx.c
index 8aede0e56ac..b0261ddf2e2 100644
--- a/sys/dev/pci/if_gx.c
+++ b/sys/dev/pci/if_gx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gx.c,v 1.5 2002/04/28 20:46:38 nate Exp $ */
+/* $OpenBSD: if_gx.c,v 1.6 2002/04/28 20:50:17 nate Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon
* All rights reserved.
@@ -845,7 +845,7 @@ gx_ifmedia_upd(struct ifnet *ifp)
return (EINVAL);
}
} else {
- ifm = &gx->gx_media;
+ ifm = &gx->gx_mii.mii_media;
/*
* 1000TX half duplex does not work.