[efr32] Radio: use RAIL_CopyRxPacket (#4484)

This commit is contained in:
Diego Ismirlian
2020-01-22 14:53:14 -08:00
committed by Jonathan Hui
parent 59b3c51184
commit f816635465
+1 -3
View File
@@ -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)