fix(802.15.4): fixed security frame configuration

This commit is contained in:
zwx
2026-01-30 14:27:37 +08:00
parent 8595d6f0da
commit 3ffec317dd
6 changed files with 45 additions and 20 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -141,6 +141,16 @@ uint8_t ieee802154_frame_get_version(const uint8_t *frame);
*/
bool ieee802154_frame_is_ack_required(const uint8_t *frame);
/**
* @brief Is the frame security enabled.
*
* @param[in] frame The pointer to the frame.
*
* @return
* - True if the frame is security enabled, otherwise false.
*
*/
bool ieee802154_frame_is_security_enabled(const uint8_t *frame);
/**
* @brief Get the destination address of the frame.
*
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -25,11 +25,10 @@ extern "C" {
void ieee802154_transmit_security_config(uint8_t *frame, uint8_t *key, uint8_t *addr);
/**
* @brief Update the encryption enabled configuration of the next transmission.
*
* @brief Clear the encryption enabled configuration.
*
*/
void ieee802154_sec_update(void);
void ieee802154_sec_clear(void);
#ifdef __cplusplus
}