1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

net/ieee802154: add option for default ack request

This commit is contained in:
Jue 2022-12-14 16:01:57 +01:00
parent 8459b68654
commit 6ff38347b3
2 changed files with 11 additions and 0 deletions

View File

@ -320,6 +320,13 @@ extern const uint8_t ieee802154_addr_bcast[IEEE802154_ADDR_BCAST_LEN];
#define CONFIG_IEEE802154_AUTO_ACK_DISABLE 0
#endif
/**
* @brief Request ACKs by default
*/
#ifndef CONFIG_IEEE802154_DEFAULT_ACK_REQ
#define CONFIG_IEEE802154_DEFAULT_ACK_REQ 1
#endif
/**
* @brief Initializes an IEEE 802.15.4 MAC frame header in @p buf.
*

View File

@ -112,6 +112,10 @@ if KCONFIG_USEMODULE_IEEE802154
bool "Disable Auto ACK support" if !USEPKG_OPENWSN
default y if USEPKG_OPENWSN
config IEEE802154_DEFAULT_ACK_REQ
bool "Request ACKs by default"
default y
menuconfig KCONFIG_USEMODULE_IEEE802154_SECURITY
bool "Configure IEEE802.15.4 Security"
depends on USEMODULE_IEEE802154_SECURITY