diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index e1a1e54baac27e2b0f0dfb9e6e76ecb4f90942fa..e24708f1fc16238091acb8081889bdbd2743ae2c 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -437,8 +437,8 @@ int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd) } break; case MII_ADVERTISE: - mii_adv_to_linkmode_adv_t(phydev->advertising, - val); + mii_adv_mod_linkmode_adv_t(phydev->advertising, + val); change_autoneg = true; break; default: