Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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.

parent 22ca7a6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;