mirror of
https://github.com/apache/nuttx.git
synced 2026-06-03 22:20:31 +08:00
Bugfixed the SocketCAN send via setting the dev->d_len to dev->d_sndlen. The dev->d_len wouldn't be assigned otherwise.
This commit is contained in:
@@ -107,6 +107,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
|
|||||||
/* Copy the packet data into the device packet buffer and send it */
|
/* Copy the packet data into the device packet buffer and send it */
|
||||||
|
|
||||||
devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
|
devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
|
||||||
|
dev->d_len = dev->d_sndlen;
|
||||||
if (dev->d_sndlen == 0)
|
if (dev->d_sndlen == 0)
|
||||||
{
|
{
|
||||||
return flags;
|
return flags;
|
||||||
|
|||||||
Reference in New Issue
Block a user