From 3161e9bac2a1576009d930a81558edad4c1aaceb Mon Sep 17 00:00:00 2001 From: Kamil Sroka Date: Wed, 27 Nov 2019 19:07:25 +0100 Subject: [PATCH] [nrf528xx] disable soft source match (#4354) This causes source match implementation in both utils and platform code, which may lead to erroneous behaviour if the wrong one is included by the linker. --- .../openthread-core-nrf52811-config.h | 20 +++++++++++++++++++ .../openthread-core-nrf52833-config.h | 20 +++++++++++++++++++ .../openthread-core-nrf52840-config.h | 20 +++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/examples/platforms/nrf528xx/nrf52811/openthread-core-nrf52811-config.h b/examples/platforms/nrf528xx/nrf52811/openthread-core-nrf52811-config.h index 1e0a798e7..8494fd0a6 100644 --- a/examples/platforms/nrf528xx/nrf52811/openthread-core-nrf52811-config.h +++ b/examples/platforms/nrf528xx/nrf52811/openthread-core-nrf52811-config.h @@ -224,6 +224,26 @@ #define OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT 1 #endif +/** + * @def RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM + * + * The number of short source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM 0 +#endif + +/** + * @def RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM + * + * The number of extended source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM 0 +#endif + /* * Suppress the ARMCC warning on unreachable statement, * e.g. break after assert(false) or ExitNow() macro. diff --git a/examples/platforms/nrf528xx/nrf52833/openthread-core-nrf52833-config.h b/examples/platforms/nrf528xx/nrf52833/openthread-core-nrf52833-config.h index 43e909cda..29f4ce9aa 100644 --- a/examples/platforms/nrf528xx/nrf52833/openthread-core-nrf52833-config.h +++ b/examples/platforms/nrf528xx/nrf52833/openthread-core-nrf52833-config.h @@ -256,6 +256,26 @@ #define OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT 1 #endif +/** + * @def RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM + * + * The number of short source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM 0 +#endif + +/** + * @def RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM + * + * The number of extended source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM 0 +#endif + /* * Suppress the ARMCC warning on unreachable statement, * e.g. break after assert(false) or ExitNow() macro. diff --git a/examples/platforms/nrf528xx/nrf52840/openthread-core-nrf52840-config.h b/examples/platforms/nrf528xx/nrf52840/openthread-core-nrf52840-config.h index abb3b41d7..72ebe926f 100644 --- a/examples/platforms/nrf528xx/nrf52840/openthread-core-nrf52840-config.h +++ b/examples/platforms/nrf528xx/nrf52840/openthread-core-nrf52840-config.h @@ -256,6 +256,26 @@ #define OPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT 1 #endif +/** + * @def RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM + * + * The number of short source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM 0 +#endif + +/** + * @def RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM + * + * The number of extended source address table entries. + * + */ +#ifndef RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM +#define RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM 0 +#endif + /* * Suppress the ARMCC warning on unreachable statement, * e.g. break after assert(false) or ExitNow() macro.