mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
net/devif: reuse devif_send() for can/pkt/icmp stack
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -106,7 +106,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 */
|
||||
|
||||
devif_can_send(dev, pstate->snd_buffer, pstate->snd_buflen);
|
||||
devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
|
||||
if (dev->d_sndlen == 0)
|
||||
{
|
||||
return flags;
|
||||
|
||||
Reference in New Issue
Block a user