pkt: Fix DHCP transmission failure by updating d_sndlen/d_len lengths
Build Documentation / build-html (push) Has been cancelled

on some device, the wifi driver uses dev->d_len as the length of the sent packet. However, due to the lack of update in d_len, the sent packet is not considered a normal packet and is not processed by the other end

Signed-off-by: wangchen <wangchen41@xiaomi.com>
This commit is contained in:
wangchen
2025-09-03 16:06:38 +08:00
committed by Xiang Xiao
parent b5eae7d774
commit 0d1eb67f20
+2 -1
View File
@@ -143,7 +143,8 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
* window size.
*/
dev->d_sndlen = iob->io_pktlen;
dev->d_sndlen = iob->io_pktlen + NET_LL_HDRLEN(dev);
dev->d_len = dev->d_sndlen;
ninfo("wrb=%p sndlen=%d\n", iob, dev->d_sndlen);
if (write_q_len > 1)