[config] remove duplicate unused definitions and fix comments (#4069)

This commit removes the unused duplicate definition in `tmf.h` for
`OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH` (this is
defined in `config/mle.h`). Also updates the comment/documentation
for `DHCP6_SERVER_NUM_PREFIXES` and `JOINER_MAX_CANDIDATES`.
This commit is contained in:
Abtin Keshavarzian
2019-08-08 08:32:33 -07:00
committed by Jonathan Hui
parent 0508f19c09
commit 5d09ce7124
4 changed files with 4 additions and 17 deletions
+2 -2
View File
@@ -172,8 +172,8 @@ typedef struct otMleCounters
/**
* Number of times device changed its parents.
*
* Support for this counter requires the feature option OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH to be
* enabled.
* Support for this counter requires the feature option OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH to
* be enabled.
*
* A parent change can happen if device detaches from its current parent and attaches to a different one, or even
* while device is attached when the periodic parent search feature is enabled (please see option
+1 -1
View File
@@ -46,7 +46,7 @@
#endif
/**
* @def OPENTHREAD_CONFIG_NUM_DHCP_PREFIXES
* @def OPENTHREAD_CONFIG_DHCP6_SERVER_NUM_PREFIXES
*
* The number of dhcp prefixes.
*
+1 -1
View File
@@ -46,7 +46,7 @@
#endif
/**
* @def OPENTHREAD_CONFIG_MAX_JOINER_ENTRIES
* @def OPENTHREAD_CONFIG_JOINER_MAX_CANDIDATES
*
* The maximum number of Joiner Router entries that can be queued by the Joiner.
*
-13
View File
@@ -147,17 +147,4 @@
#define OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE 0
#endif
/**
* @def OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH
*
* Define as 1 for a child to inform its previous parent when it attaches to a new parent.
*
* If this feature is enabled, when a device attaches to a new parent, it will send an IP message (with empty payload
* and mesh-local IP address as the source address) to its previous parent.
*
*/
#ifndef OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH
#define OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH 0
#endif
#endif // CONFIG_TMF_H_