mesh: Replace hardcoded duplicate cache size
The hardcoded value was arbitrary and interfered with message cache mechanism causing invalid behavior and PTS test to fail. Fixes MESH/NODE/RLY/BV-02-C. Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
This commit is contained in:
parent
cc6d9f1072
commit
1e29b2dceb
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ struct bt_mesh_net bt_mesh = {
|
|||
},
|
||||
};
|
||||
|
||||
static uint32_t dup_cache[4];
|
||||
static uint32_t dup_cache[CONFIG_BT_MESH_MSG_CACHE_SIZE];
|
||||
static int dup_cache_next;
|
||||
|
||||
static bool check_dup(struct net_buf_simple *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue