summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/r8169.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 976bb31b2092..182c79474434 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1258,16 +1258,7 @@ static int rtl8169_set_speed_xmii(struct net_device *dev,
giga_ctrl &= ~(ADVERTISE_1000FULL | ADVERTISE_1000HALF);
/* The 8100e/8101e/8102e do Fast Ethernet only. */
- if (tp->mac_version != RTL_GIGA_MAC_VER_07 &&
- tp->mac_version != RTL_GIGA_MAC_VER_08 &&
- tp->mac_version != RTL_GIGA_MAC_VER_09 &&
- tp->mac_version != RTL_GIGA_MAC_VER_10 &&
- tp->mac_version != RTL_GIGA_MAC_VER_13 &&
- tp->mac_version != RTL_GIGA_MAC_VER_14 &&
- tp->mac_version != RTL_GIGA_MAC_VER_15 &&
- tp->mac_version != RTL_GIGA_MAC_VER_16 &&
- tp->mac_version != RTL_GIGA_MAC_VER_29 &&
- tp->mac_version != RTL_GIGA_MAC_VER_30) {
+ if (tp->mii.supports_gmii) {
if (adv & ADVERTISED_1000baseT_Half)
giga_ctrl |= ADVERTISE_1000HALF;
if (adv & ADVERTISED_1000baseT_Full)