From f816635465e8d5294ef166dc09e3561e1b9e9d27 Mon Sep 17 00:00:00 2001 From: Diego Ismirlian Date: Wed, 15 Jan 2020 15:16:51 -0300 Subject: [PATCH] [efr32] Radio: use RAIL_CopyRxPacket (#4484) --- examples/platforms/efr32mg12/radio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/platforms/efr32mg12/radio.c b/examples/platforms/efr32mg12/radio.c index fc13cf07f..9eab725c9 100644 --- a/examples/platforms/efr32mg12/radio.c +++ b/examples/platforms/efr32mg12/radio.c @@ -805,9 +805,7 @@ static void processNextRxPacket(otInstance *aInstance) packetInfo.packetBytes--; // read packet - memcpy(sReceiveFrame.mPsdu, packetInfo.firstPortionData, packetInfo.firstPortionBytes); - memcpy(sReceiveFrame.mPsdu + packetInfo.firstPortionBytes, packetInfo.lastPortionData, - packetInfo.packetBytes - packetInfo.firstPortionBytes); + RAIL_CopyRxPacket(sReceiveFrame.mPsdu, &packetInfo); status = RAIL_ReleaseRxPacket(gRailHandle, packetHandle); if (status == RAIL_STATUS_NO_ERROR)