Fix a typo introduced in r213280. IFM_OPTIONS macro should see
current media word.
This commit is contained in:
parent
601d4c7543
commit
4951ca8620
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251733
@ -1284,7 +1284,7 @@ bge_miibus_statchg(device_t dev)
|
|||||||
/* Set MAC flow control behavior to match link flow control settings. */
|
/* Set MAC flow control behavior to match link flow control settings. */
|
||||||
tx_mode &= ~BGE_TXMODE_FLOWCTL_ENABLE;
|
tx_mode &= ~BGE_TXMODE_FLOWCTL_ENABLE;
|
||||||
rx_mode &= ~BGE_RXMODE_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)
|
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_TXPAUSE) != 0)
|
||||||
tx_mode |= BGE_TXMODE_FLOWCTL_ENABLE;
|
tx_mode |= BGE_TXMODE_FLOWCTL_ENABLE;
|
||||||
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0)
|
if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user