aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2011-05-12 16:28:05 -0400
committerDavid S. Miller <davem@davemloft.net>2011-05-13 16:12:07 -0400
commit64c7f304b81a9a92dc7046c97a10427a5997dc07 (patch)
tree24a1ddf2bcec061db17cc3032df8949cdebaf8d6 /drivers/net/stmmac
parent1334cb60826377de8f75adb9902c25302222f4fe (diff)
stmmac: fix autoneg in set_pauseparam
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>
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r--drivers/net/stmmac/stmmac_ethtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/stmmac/stmmac_ethtool.c
index 9c05cf07a432..ae5213a8c4cd 100644
--- a/drivers/net/stmmac/stmmac_ethtool.c
+++ b/drivers/net/stmmac/stmmac_ethtool.c
@@ -234,6 +234,7 @@ stmmac_set_pauseparam(struct net_device *netdev,
234 new_pause |= FLOW_TX; 234 new_pause |= FLOW_TX;
235 235
236 priv->flow_ctrl = new_pause; 236 priv->flow_ctrl = new_pause;
237 phy->autoneg = pause->autoneg;
237 238
238 if (phy->autoneg) { 239 if (phy->autoneg) {
239 if (netif_running(netdev)) 240 if (netif_running(netdev))