netopt: Add NETOPT_MAC_NO_SLEEP

This commit is contained in:
Joakim Nohlgård 2017-09-19 13:55:18 +02:00
parent e39a0a1af5
commit 43a15440cb
2 changed files with 11 additions and 0 deletions

View File

@ -193,6 +193,16 @@ typedef enum {
*/
NETOPT_CSMA_MINBE,
/**
* @brief en/disable blocking of radio sleep when running a duty cycling MAC layer
*
* (netopt_enable_t) Enabling this option tells the MAC layer to never put
* the radio to sleep. Useful in gateways and routers not running on
* batteries to improve responsiveness and allow battery powered nodes on
* the same network to sleep more often.
*/
NETOPT_MAC_NO_SLEEP,
/**
* @brief read-only check for a wired interface.
*

View File

@ -51,6 +51,7 @@ static const char *_netopt_strmap[] = {
[NETOPT_CSMA_RETRIES] = "NETOPT_CSMA_RETRIES",
[NETOPT_CSMA_MAXBE] = "NETOPT_CSMA_MAXBE",
[NETOPT_CSMA_MINBE] = "NETOPT_CSMA_MINBE",
[NETOPT_MAC_NO_SLEEP] = "NETOPT_MAC_NO_SLEEP",
[NETOPT_IS_WIRED] = "NETOPT_IS_WIRED",
[NETOPT_DEVICE_TYPE] = "NETOPT_DEVICE_TYPE",
[NETOPT_CHANNEL_PAGE] = "NETOPT_CHANNEL_PAGE",