Commit 682256db authored by Somnath Kotur's avatar Somnath Kotur Committed by David S. Miller
Browse files

be2net: Fix to apply duplex value as unknown when link is down.

Suggested-by: default avatarBen Hutchings <>
Signed-off-by: default avatarSarveshwar Bandi <>
Signed-off-by: default avatarSomnath Kotur <>
Signed-off-by: default avatarDavid S. Miller <>
parent 22ca7a6e
......@@ -618,7 +618,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
ecmd->supported = adapter->phy.supported;
ecmd->duplex = DUPLEX_FULL;
ecmd->duplex = netif_carrier_ok(netdev) ? DUPLEX_FULL : DUPLEX_UNKNOWN;
ecmd->phy_address = adapter->port_num;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment