summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/tdkphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/tdkphy.c')
-rw-r--r--sys/dev/mii/tdkphy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/tdkphy.c b/sys/dev/mii/tdkphy.c
index 1b31ee2..83a394a 100644
--- a/sys/dev/mii/tdkphy.c
+++ b/sys/dev/mii/tdkphy.c
@@ -239,10 +239,10 @@ tdkphy_status(struct mii_softc *phy)
* ANLPAR doesn't get set on my card, but we check it anyway,
* since it is mentioned in the 78Q2120 specs.
*/
- if (anlpar & ANLPAR_T4)
- mii->mii_media_active |= IFM_100_T4;
- else if (anlpar & ANLPAR_TX_FD)
+ if (anlpar & ANLPAR_TX_FD)
mii->mii_media_active |= IFM_100_TX|IFM_FDX;
+ else if (anlpar & ANLPAR_T4)
+ mii->mii_media_active |= IFM_100_T4;
else if (anlpar & ANLPAR_TX)
mii->mii_media_active |= IFM_100_TX;
else if (anlpar & ANLPAR_10_FD)
OpenPOWER on IntegriCloud