Skip to content

Commit 0a1769c

Browse files
edmontcarlescufi
authored andcommitted
[nrf fromtree] net: openthread: fix received frame flags
Uninitialized memory would report wrong value for `mAckedWithSecEnhAck` flag in the received frame, making the OpenThread stack to update the frame counter for the neighbor wrongly. Signed-off-by: Eduardo Montoya <[email protected]> (cherry picked from commit 19ac4d818fe6f43b27864f1564e4894b0a23f1bd)
1 parent a4edab5 commit 0a1769c

File tree

1 file changed

+1
-0
lines changed
  • subsys/net/lib/openthread/platform

1 file changed

+1
-0
lines changed

subsys/net/lib/openthread/platform/radio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ static void openthread_handle_received_frame(otInstance *instance,
356356
struct net_pkt *pkt)
357357
{
358358
otRadioFrame recv_frame;
359+
memset(&recv_frame, 0, sizeof(otRadioFrame));
359360

360361
recv_frame.mPsdu = net_buf_frag_last(pkt->buffer)->data;
361362
/* Length inc. CRC. */

0 commit comments

Comments
 (0)