|
@@ -1809,8 +1809,8 @@ static int get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
|
|
ethtool_cmd_speed_set(cmd, p->link_config.speed);
|
|
ethtool_cmd_speed_set(cmd, p->link_config.speed);
|
|
cmd->duplex = p->link_config.duplex;
|
|
cmd->duplex = p->link_config.duplex;
|
|
} else {
|
|
} else {
|
|
- ethtool_cmd_speed_set(cmd, -1);
|
|
|
|
- cmd->duplex = -1;
|
|
|
|
|
|
+ ethtool_cmd_speed_set(cmd, SPEED_UNKNOWN);
|
|
|
|
+ cmd->duplex = DUPLEX_UNKNOWN;
|
|
}
|
|
}
|
|
|
|
|
|
cmd->port = (cmd->supported & SUPPORTED_TP) ? PORT_TP : PORT_FIBRE;
|
|
cmd->port = (cmd->supported & SUPPORTED_TP) ? PORT_TP : PORT_FIBRE;
|