Open mickflemm opened 5 years ago
On recent kernel versions: phydev->advertising = phydev->supported will not work since they are not u32 anymore but bitfields, you should instead use linkmode_* functions to manipulate them, e.g.:
linkmode_and(phydev->advertising, phydev->advertising, phydev->supported); linkmode_copy(priv->phy_dev->advertising, priv->phy_dev->supported);
On recent kernel versions: phydev->advertising = phydev->supported will not work since they are not u32 anymore but bitfields, you should instead use linkmode_* functions to manipulate them, e.g.:
linkmode_and(phydev->advertising, phydev->advertising, phydev->supported); linkmode_copy(priv->phy_dev->advertising, priv->phy_dev->supported);