summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r--sys/net/if_media.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index ed74eff..1fbe21b 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -263,7 +263,7 @@ int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
#define IFM_TYPE_OPTIONS(x) ((x) & IFM_OMASK)
#define IFM_INST(x) (((x) & IFM_IMASK) >> IFM_ISHIFT)
#define IFM_OPTIONS(x) ((x) & (IFM_OMASK|IFM_GMASK))
-#define IFM_MODE(x) (((x) & IFM_MMASK) >> IFM_MSHIFT)
+#define IFM_MODE(x) ((x) & IFM_MMASK)
#define IFM_INST_MAX IFM_INST(IFM_IMASK)
OpenPOWER on IntegriCloud