mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
pkt: Fix DHCP transmission failure by updating d_sndlen/d_len lengths
Build Documentation / build-html (push) Has been cancelled
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user