Skip to content

Commit ea7676c

Browse files
authored
[mac_frame] process the key id mode 2 only when the wakeup coordinator 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.
1 parent 1e3c4d7 commit ea7676c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/platforms/utils/mac_frame.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ otError otMacFrameProcessTransmitSecurity(otRadioFrame *aFrame, otRadioContext *
319319
bool processKeyId;
320320

321321
processKeyId =
322-
#if OPENTHREAD_CONFIG_WAKEUP_END_DEVICE_ENABLE
322+
#if OPENTHREAD_CONFIG_WAKEUP_COORDINATOR_ENABLE
323323
otMacFrameIsKeyIdMode2(aFrame) ||
324324
#endif
325325
otMacFrameIsKeyIdMode1(aFrame);

0 commit comments

Comments
 (0)