Skip to content

Commit

Permalink
net: openthread: Fix multiple Kconfig enablers for Link Metrics
Browse files Browse the repository at this point in the history
Remove duplicated enabler for Link Metrics feature.

Signed-off-by: Lukasz Maciejonczyk <[email protected]>
  • Loading branch information
lmaciejonczyk authored and jukkar committed May 11, 2021
1 parent eaeac46 commit 977aba6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion subsys/net/l2/openthread/Kconfig.features
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ config OPENTHREAD_OTNS
config OPENTHREAD_FULL_LOGS
bool "Enable OpenThread full logs"

config OPENTHREAD_MLE_LINK_METRICS_ENABLE
config OPENTHREAD_LINK_METRICS
bool "Enable Link Metrics support"

config OPENTHREAD_SRP_CLIENT
Expand Down
11 changes: 0 additions & 11 deletions subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,4 @@
CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD
#endif /* CONFIG_OPENTHREAD_CSL_RECEIVE_TIME_AHEAD */

/**
* @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE
*
* Set to 1 to enable Link Metrics feature.
*
*/
#ifdef CONFIG_OPENTHREAD_MLE_LINK_METRICS_ENABLE
#define OPENTHREAD_CONFIG_MLE_LINK_METRICS_ENABLE \
CONFIG_OPENTHREAD_MLE_LINK_METRICS_ENABLE
#endif /* CONFIG_OPENTHREAD_MLE_LINK_METRICS_ENABLE */

#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */
2 changes: 1 addition & 1 deletion subsys/net/lib/openthread/platform/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ uint8_t otPlatRadioGetCslAccuracy(otInstance *aInstance)
return radio_api->get_csl_acc(radio_dev);
}

#if defined(CONFIG_OPENTHREAD_MLE_LINK_METRICS_ENABLE)
#if defined(CONFIG_OPENTHREAD_LINK_METRICS)
otError otPlatRadioConfigureEnhAckProbing(otInstance *aInstance, otLinkMetrics aLinkMetrics,
const otShortAddress aShortAddress,
const otExtAddress *aExtAddress)
Expand Down

0 comments on commit 977aba6

Please sign in to comment.