Skip to content

Commit

Permalink
stmmac: fix autoneg in set_pauseparam
Browse files Browse the repository at this point in the history
This patch fixes a bug in the set_pauseparam
function that didn't well manage the ANE
field and returned broken values when use
ethtool -A|-a.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Giuseppe CAVALLARO authored and David S. Miller committed May 13, 2011
1 parent 1334cb6 commit 64c7f30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/stmmac/stmmac_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ stmmac_set_pauseparam(struct net_device *netdev,
new_pause |= FLOW_TX;

priv->flow_ctrl = new_pause;
phy->autoneg = pause->autoneg;

if (phy->autoneg) {
if (netif_running(netdev))
Expand Down

0 comments on commit 64c7f30

Please sign in to comment.