From f4d3a0396d2eab9ef09c407ab899523a76e2df6c Mon Sep 17 00:00:00 2001 From: Tan Yan Quan Date: Mon, 24 Mar 2025 14:53:20 +0800 Subject: [PATCH] fix(openthread): add some bugfixes to pass CI pipeline --- components/ieee802154/private_include/esp_ieee802154_dev.h | 2 +- components/openthread/src/port/esp_openthread_radio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ieee802154/private_include/esp_ieee802154_dev.h b/components/ieee802154/private_include/esp_ieee802154_dev.h index 221c2c32be..1d53af66f0 100644 --- a/components/ieee802154/private_include/esp_ieee802154_dev.h +++ b/components/ieee802154/private_include/esp_ieee802154_dev.h @@ -268,7 +268,7 @@ bool ieee802154_mac_is_inited(void); #define IEEE802154_STATIC static #define IEEE802154_INLINE inline #endif // CONFIG_IEEE802154_TEST -#define IEEE802154_NOINLINE __attribute__((noinline)) +#define IEEE802154_NOINLINE __attribute__((noinline, used)) #ifdef __cplusplus } diff --git a/components/openthread/src/port/esp_openthread_radio.c b/components/openthread/src/port/esp_openthread_radio.c index 1d3f38d0a6..6ddee9aa74 100644 --- a/components/openthread/src/port/esp_openthread_radio.c +++ b/components/openthread/src/port/esp_openthread_radio.c @@ -658,7 +658,7 @@ esp_err_t IRAM_ATTR esp_ieee802154_enh_ack_generator(uint8_t *frame, esp_ieee802 { otRadioFrame ack_frame; otRadioFrame ot_frame; - uint8_t ack_ie_data[OT_ACK_IE_MAX_SIZE]; + uint8_t ack_ie_data[OT_ACK_IE_MAX_SIZE] = {0}; uint8_t offset = 0; #if OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE uint8_t link_metrics_data_len = 0;