Fix a typo introduced in r213280. IFM_OPTIONS macro should see
current media word.
This commit is contained in:
parent
601d4c7543
commit
4951ca8620
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user