mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 07:37:46 +00:00
[mac_frame] process the key id mode 2 only when the wakeup coordinator is enabled (#11047)
The wakeup frame is sent from the wakeup coordinator rather than the wakeup end device. Current code processes the key id mode 2 only when the device is the wakeup end device. This commit corrects this issue.
This commit is contained in:
@@ -319,7 +319,7 @@ otError otMacFrameProcessTransmitSecurity(otRadioFrame *aFrame, otRadioContext *
|
||||
bool processKeyId;
|
||||
|
||||
processKeyId =
|
||||
#if OPENTHREAD_CONFIG_WAKEUP_END_DEVICE_ENABLE
|
||||
#if OPENTHREAD_CONFIG_WAKEUP_COORDINATOR_ENABLE
|
||||
otMacFrameIsKeyIdMode2(aFrame) ||
|
||||
#endif
|
||||
otMacFrameIsKeyIdMode1(aFrame);
|
||||
|
||||
Reference in New Issue
Block a user