[radio] union the transmit and receive information in radio frame (#2789)

The transmit and receive specific information will not be used at the same time,
so use union structure to save ram usage.
This commit is contained in:
Shu Chen
2018-06-15 10:26:37 -07:00
committed by Jonathan Hui
parent 13a40c8bcf
commit ed58a6775b
21 changed files with 126 additions and 114 deletions
+1 -1
View File
@@ -956,7 +956,7 @@ otLwfCmdSendMacFrameAsync(
Packet->mPsdu,
(uint32_t)Packet->mLength,
Packet->mChannel,
Packet->mRssi
Packet->mInfo.mRxInfo.mRssi
);
if (!NT_SUCCESS(status))
{
@@ -1019,11 +1019,11 @@ otLwfEventWorkerThread(
SPINEL_DATATYPE_STRUCT_S( // Vendor-data
SPINEL_DATATYPE_UINT_PACKED_S
),
&pFilter->otReceiveFrame.mRssi,
&pFilter->otReceiveFrame.mInfo.mRxInfo.mRssi,
&noiseFloor,
&flags,
&pFilter->otReceiveFrame.mChannel,
&pFilter->otReceiveFrame.mLqi,
&pFilter->otReceiveFrame.mInfo.mRxInfo.mLqi,
&errorCode))
{
otLwfRadioReceiveFrame(pFilter, errorCode);