Skip to contentSkip to conversation

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

PATCH Applied Wolfgang Grandegger 2 participants 2 messages Nov 14, 2011 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

---
 drivers/net/can/mscan/mscan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/can/mscan/mscan.c +1 -1
index 74f3b18..1c82dd8 100644
@@ -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);
Signature · 1 line
1.7.6.4

A message that is not in the archive (sent off-list or not yet received): [email protected]