Skip to content

Commit

Permalink
net/can/mscan: Fix buggy listen only mode setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfgang Grandegger authored and David S. Miller committed Nov 14, 2011
1 parent 612a94d commit abbd00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ static int mscan_open(struct net_device *dev)

priv->open_time = jiffies;

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

0 comments on commit abbd00b

Please sign in to comment.