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:
Michał Narajowski 2020-06-23 12:10:50 +02:00 committed by Johan Hedberg
commit 1e29b2dceb

View file

@ -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)