summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-04-28 20:50:18 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-04-28 20:50:18 +0000
commit3819d0bf996ee991a7b0e9999eba3fa7130fdda7 (patch)
tree65e3249479e53dd5c7301d0b9889b1e9491fef64
parente08fb0ff38dd899f1f9cd46d1bf47cad4dbc6ca2 (diff)
use the correct ifmedia struct
-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.