summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2013-06-14 05:16:51 +0000
committeryongari <yongari@FreeBSD.org>2013-06-14 05:16:51 +0000
commit1f0a53a66f87e788b7ce601706e85f6b04724261 (patch)
treef2e42db90ceaedec3cf2817f2f4815445dd6a68f /sys/dev/bge
parent44b2ad15cd7cc2b19f041e13de57fd990cb69b9b (diff)
downloadFreeBSD-src-1f0a53a66f87e788b7ce601706e85f6b04724261.zip
FreeBSD-src-1f0a53a66f87e788b7ce601706e85f6b04724261.tar.gz
Fix a typo introduced in r213280. IFM_OPTIONS macro should see
current media word.
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index d6e6e20..1a637f5 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -1284,7 +1284,7 @@ bge_miibus_statchg(device_t dev)
/* Set MAC flow control behavior to match link flow control settings. */
tx_mode &= ~BGE_TXMODE_FLOWCTL_ENABLE;
rx_mode &= ~BGE_RXMODE_FLOWCTL_ENABLE;
- if (IFM_OPTIONS(mii->mii_media_active & IFM_FDX) != 0) {
+ if ((IFM_OPTIONS(mii->mii_media_active) & IFM_FDX) != 0) {
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_TXPAUSE) != 0)
tx_mode |= BGE_TXMODE_FLOWCTL_ENABLE;
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0)
OpenPOWER on IntegriCloud