Skip to content

Commit

Permalink
net/ieee802154: add config for default CCA threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
jia200x committed Sep 30, 2020
1 parent c47b64a commit d33651f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sys/include/net/ieee802154.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d33651f

Please sign in to comment.