net/can/mscan: Fix buggy listen only mode setting
This patch fixes an issue introduced recently with commit
452448f928
.
CC: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
612a94d6f2
commit
abbd00b82a
@@ -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(®s->canctl1, MSCAN_LISTEN);
|
setbits8(®s->canctl1, MSCAN_LISTEN);
|
||||||
else
|
else
|
||||||
clrbits8(®s->canctl1, MSCAN_LISTEN);
|
clrbits8(®s->canctl1, MSCAN_LISTEN);
|
||||||
|
Reference in New Issue
Block a user