From 88f8880e166eb69719af86fc31196dd74560ce51 Mon Sep 17 00:00:00 2001 From: Erik Brockhoff Date: Mon, 27 Jan 2020 11:43:31 +0100 Subject: [PATCH] bluetooth: controller: fixing issue with white list clear When clearing the whitelist, possible white listings in resolve list were left. These are now also cleared. Signed-off-by: Erik Brockhoff --- subsys/bluetooth/controller/ll_sw/ull_filter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subsys/bluetooth/controller/ll_sw/ull_filter.c b/subsys/bluetooth/controller/ll_sw/ull_filter.c index fe09e99ebb7..500be964a00 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_filter.c +++ b/subsys/bluetooth/controller/ll_sw/ull_filter.c @@ -841,6 +841,11 @@ u8_t ull_filter_deferred_targeta_resolve(bt_addr_t *rpa, u8_t rl_idx, static void wl_clear(void) { for (int i = 0; i < WL_SIZE; i++) { + u8_t j = wl[i].rl_idx; + + if (j < ARRAY_SIZE(rl)) { + rl[j].wl = 0U; + } wl[i].taken = 0U; } }