net: use SPEED_UNKNOWN and DUPLEX_UNKNOWN when appropriate
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1caaab63d3
commit
537fae0101
@@ -4285,8 +4285,8 @@ static int nv_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
|
||||
if (np->duplex)
|
||||
ecmd->duplex = DUPLEX_FULL;
|
||||
} else {
|
||||
speed = -1;
|
||||
ecmd->duplex = -1;
|
||||
speed = SPEED_UNKNOWN;
|
||||
ecmd->duplex = DUPLEX_UNKNOWN;
|
||||
}
|
||||
ethtool_cmd_speed_set(ecmd, speed);
|
||||
ecmd->autoneg = np->autoneg;
|
||||
|
Reference in New Issue
Block a user