summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-07-08 04:34:35 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-07-08 04:34:35 +0000
commit0fa0694b0a50d8be71a82f9c6c3f8bf18a5b9221 (patch)
tree04352e26d9ea647cd1abdb48d8af2bdae8fbfec4 /sys
parent34a7bac09d857187deb62cd9c3190a650a8ea852 (diff)
don't add 1000Mbps media types for a 10/100 only PHY.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_em.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 6a9e2c269c6..490a64396ec 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.136 2006/07/07 02:56:18 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.137 2006/07/08 04:34:34 brad Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -1603,9 +1603,11 @@ em_setup_interface(struct em_softc *sc)
0, NULL);
ifmedia_add(&sc->media, IFM_ETHER | IFM_100_TX | IFM_FDX,
0, NULL);
- ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T | IFM_FDX,
- 0, NULL);
- ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T, 0, NULL);
+ if (sc->hw.phy_type != em_phy_ife) {
+ ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T | IFM_FDX,
+ 0, NULL);
+ ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T, 0, NULL);
+ }
}
ifmedia_add(&sc->media, IFM_ETHER | IFM_AUTO, 0, NULL);
ifmedia_set(&sc->media, IFM_ETHER | IFM_AUTO);