mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(802.15.4): fixed security frame configuration
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user