Skip to content
Snippets Groups Projects
Commit 612eef4f authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by David S. Miller
Browse files

can: mcp251x: fix generation of error frames


The function "mcp251x_error_skb" is used to generate error frames.
They are identified by the "CAN_ERR_FLAG" in can_id. The function
overwrites the can_id so that the frames show up as normal frames instead
of error frames.

This patch fixes the problem by or'ing the can_id instead of overwriting it.

Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Tested-by: default avatarJargalan Nermunkh <jargalan.nermunkh@criticallink.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5601b2df
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment