mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[radio] process tx AES without otInstance (#4318)
`otPlatRadioFrameUpdated()` is declared not to access any state within OpenThread. However, the current implementation does read the extended address. This commit moves the AES process into `Mac::TxFrame`, which is free of `otInstance` and eliminates the current deep callback stacks when the radio driver wants to process tx AES from interrupt context.
This commit is contained in:
@@ -115,3 +115,8 @@ uint8_t otMacFrameGetSequence(const otRadioFrame *aFrame)
|
||||
{
|
||||
return static_cast<const Mac::Frame *>(aFrame)->GetSequence();
|
||||
}
|
||||
|
||||
void otMacFrameProcessTransmitAesCcm(otRadioFrame *aFrame, const otExtAddress *aExtAddress)
|
||||
{
|
||||
static_cast<Mac::TxFrame *>(aFrame)->ProcessTransmitAesCcm(*static_cast<const Mac::ExtAddress *>(aExtAddress));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user