Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abbd00b8 authored by Wolfgang Grandegger's avatar Wolfgang Grandegger Committed by David S. Miller
Browse files

net/can/mscan: Fix buggy listen only mode setting



This patch fixes an issue introduced recently with commit
452448f9.

CC: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarWolfgang Grandegger <wg@grandegger.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 612a94d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -581,7 +581,7 @@ static int mscan_open(struct net_device *dev)


	priv->open_time = jiffies;
	priv->open_time = jiffies;


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