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 <erbr@oticon.com>
This commit is contained in:
parent
11ef49b65c
commit
88f8880e16
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue