add a flag of lin internal sleep/wakeup state

Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
This commit is contained in:
wangxiaoxin
2024-08-07 16:46:36 +08:00
committed by Xiang Xiao
parent 43d483efc0
commit 2a99490ed6
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -1217,7 +1217,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
case SIOCSCANSTATE: /* Set the LIN/CAN controller state */
if (dev->d_ioctl)
{
FAR enum can_ioctl_state_e *can_state =
FAR struct can_ioctl_state_s *can_state =
&req->ifr_ifru.ifru_can_state;
ret = dev->d_ioctl(dev, cmd,
(unsigned long)(uintptr_t)can_state);