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)