bnx2x: ethtool returns req. AN even when AN fails
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 12 Mar 2012 08:53:13 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2012 00:10:49 +0000 (17:10 -0700)
commit241fb5d2b4205a523a50a85f9c312e1eda8ec53d
tree8848234f6a44732bab5eaa1f80b0108123fdf3c0
parent382984618e847ad4621d7ccbd48f5ec702c6a78e
bnx2x: ethtool returns req. AN even when AN fails

Previously, if autoneg failed, ethtool would return the achieved autoneg.
This patch corrects this, causing ethtool to return the requested autoneg
capabilities even if autoneg fails.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c