diff options
author | 2015-07-19 04:59:39 +0000 | |
---|---|---|
committer | 2015-07-19 04:59:39 +0000 | |
commit | c51b63db367fbc79a60bcb7eeda32850e3036f27 (patch) | |
tree | eedac75262e4d21b25b9e9d77f31dcbd705acd12 | |
parent | clarify how inet|inet6 work in filters (diff) | |
download | wireguard-openbsd-c51b63db367fbc79a60bcb7eeda32850e3036f27.tar.xz wireguard-openbsd-c51b63db367fbc79a60bcb7eeda32850e3036f27.zip |
according to MII specification, these seems to be bug.
ok deraadt@
-rw-r--r-- | sys/dev/mii/ipgphy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/ipgphy.c b/sys/dev/mii/ipgphy.c index 030ace456dc..5111ed1180d 100644 --- a/sys/dev/mii/ipgphy.c +++ b/sys/dev/mii/ipgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipgphy.c,v 1.16 2013/12/28 03:30:41 deraadt Exp $ */ +/* $OpenBSD: ipgphy.c,v 1.17 2015/07/19 04:59:39 yuo Exp $ */ /*- * Copyright (c) 2006, Pyun YongHyeon <yongari@FreeBSD.org> @@ -204,7 +204,7 @@ ipgphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) PHY_WRITE(sc, IPGPHY_MII_BMCR, speed); if (mii->mii_media.ifm_media & IFM_ETH_MASTER) - gig |= IPGPHY_1000CR_MASTER | IPGPHY_1000CR_MANUAL; + gig |= IPGPHY_1000CR_MMASTER | IPGPHY_1000CR_MANUAL; PHY_WRITE(sc, IPGPHY_MII_1000CR, gig); @@ -342,7 +342,7 @@ ipgphy_status(struct mii_softc *sc) if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) { if (PHY_READ(sc, IPGPHY_MII_1000SR) & - IPGPHY_1000SR_MASTER) + IPGPHY_1000SR_MMASTER) mii->mii_media_active |= IFM_ETH_MASTER; } } else |