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
@@ -5360,8 +5360,8 @@ static int s2io_ethtool_gset(struct net_device *dev, struct ethtool_cmd *info)
|
||||
ethtool_cmd_speed_set(info, SPEED_10000);
|
||||
info->duplex = DUPLEX_FULL;
|
||||
} else {
|
||||
ethtool_cmd_speed_set(info, -1);
|
||||
info->duplex = -1;
|
||||
ethtool_cmd_speed_set(info, SPEED_UNKNOWN);
|
||||
info->duplex = DUPLEX_UNKNOWN;
|
||||
}
|
||||
|
||||
info->autoneg = AUTONEG_DISABLE;
|
||||
|
Reference in New Issue
Block a user