From ea7676cd54f92f99fe033a6cf9c176126d01f434 Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Fri, 13 Dec 2024 23:21:22 +0800 Subject: [PATCH] [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. --- examples/platforms/utils/mac_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platforms/utils/mac_frame.cpp b/examples/platforms/utils/mac_frame.cpp index 6f23f6df7..3b48dd599 100644 --- a/examples/platforms/utils/mac_frame.cpp +++ b/examples/platforms/utils/mac_frame.cpp @@ -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);