[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:
Zhanglong Xia
2024-12-13 07:21:22 -08:00
committed by GitHub
parent 1e3c4d7d6d
commit ea7676cd54
+1 -1
View File
@@ -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);