Skip to content

Commit

Permalink
[mac_frame] process the key id mode 2 only when the wakeup coordinato…
Browse files Browse the repository at this point in the history
…r is enabled (openthread#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.
  • Loading branch information
zhanglongxia authored Dec 13, 2024
1 parent 1e3c4d7 commit ea7676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/platforms/utils/mac_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ea7676c

Please sign in to comment.