net/ieee802154: add config for default CCA threshold

This commit is contained in:
Jose Alamos 2020-09-30 14:38:25 +02:00
parent 1de5b34adf
commit 7cf6943eab

View File

@ -239,6 +239,13 @@ extern const uint8_t ieee802154_addr_bcast[IEEE802154_ADDR_BCAST_LEN];
#define CONFIG_IEEE802154_DEFAULT_CSMA_CA_MAX_BE (5U)
#endif
/**
* @brief IEEE802.15.4 default value for CCA threshold (in dBm)
*/
#ifndef CONFIG_IEEE802154_CCA_THRESH_DEFAULT
#define CONFIG_IEEE802154_CCA_THRESH_DEFAULT (-70)
#endif
/**
* @brief Initializes an IEEE 802.15.4 MAC frame header in @p buf.
*