Skip to content

Commit abbd00b

Browse files
grandwolfdavem330
authored andcommitted
net/can/mscan: Fix buggy listen only mode setting
This patch fixes an issue introduced recently with commit 452448f. CC: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 612a94d commit abbd00b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/can/mscan/mscan.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static int mscan_open(struct net_device *dev)
581581

582582
priv->open_time = jiffies;
583583

584-
if (ctrlmode.flags & CAN_CTRLMODE_LISTENONLY)
584+
if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
585585
setbits8(&regs->canctl1, MSCAN_LISTEN);
586586
else
587587
clrbits8(&regs->canctl1, MSCAN_LISTEN);

0 commit comments

Comments
 (0)