|
@@ -289,9 +289,11 @@ static void can_update_state_error_stats(struct net_device *dev,
|
|
|
priv->can_stats.error_passive++;
|
|
|
break;
|
|
|
case CAN_STATE_BUS_OFF:
|
|
|
+ priv->can_stats.bus_off++;
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
- };
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
static int can_tx_state_to_frame(struct net_device *dev, enum can_state state)
|
|
@@ -544,7 +546,6 @@ void can_bus_off(struct net_device *dev)
|
|
|
netdev_dbg(dev, "bus-off\n");
|
|
|
|
|
|
netif_carrier_off(dev);
|
|
|
- priv->can_stats.bus_off++;
|
|
|
|
|
|
if (priv->restart_ms)
|
|
|
mod_timer(&priv->restart_timer,
|