mirror of
https://github.com/espressif/openthread.git
synced 2026-09-04 16:20:05 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user