stmmac: fix autoneg in set_pauseparam
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Thu, 12 May 2011 20:28:05 +0000 (20:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 20:12:07 +0000 (16:12 -0400)
commit64c7f304b81a9a92dc7046c97a10427a5997dc07
tree24a1ddf2bcec061db17cc3032df8949cdebaf8d6
parent1334cb60826377de8f75adb9902c25302222f4fe
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>
drivers/net/stmmac/stmmac_ethtool.c