mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 15:17:46 +00:00
[efr32] Radio: handle promiscuous mode for ACK packets (#4482)
This commit is contained in:
committed by
Jonathan Hui
parent
002f9dbe38
commit
312dad2578
@@ -739,7 +739,9 @@ static void processNextRxPacket(otInstance *aInstance)
|
||||
}
|
||||
else
|
||||
{
|
||||
otEXPECT(length != IEEE802154_ACK_LENGTH);
|
||||
// signal MAC layer for each received frame if promiscous is enabled
|
||||
// otherwise only signal MAC layer for non-ACK frame
|
||||
otEXPECT(sPromiscuous || (length != IEEE802154_ACK_LENGTH));
|
||||
|
||||
sReceiveError = OT_ERROR_NONE;
|
||||
|
||||
@@ -763,16 +765,11 @@ static void processNextRxPacket(otInstance *aInstance)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
// signal MAC layer for each received frame if promiscous is enabled
|
||||
// otherwise only signal MAC layer for non-ACK frame
|
||||
if (sPromiscuous || sReceiveFrame.mLength > IEEE802154_ACK_LENGTH)
|
||||
{
|
||||
otLogInfoPlat("Received %d bytes", sReceiveFrame.mLength);
|
||||
otPlatRadioReceiveDone(aInstance, &sReceiveFrame, sReceiveError);
|
||||
otLogInfoPlat("Received %d bytes", sReceiveFrame.mLength);
|
||||
otPlatRadioReceiveDone(aInstance, &sReceiveFrame, sReceiveError);
|
||||
#if RADIO_CONFIG_DEBUG_COUNTERS_SUPPORT
|
||||
sRailDebugCounters.mRailPlatRadioReceiveDoneCbCount++;
|
||||
sRailDebugCounters.mRailPlatRadioReceiveDoneCbCount++;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user