Bluetooth: controller: Fix regression in WL filter population
Erroneous check conversion triggered a regression when populating the whitelist filter. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
4995820acf
commit
4666015323
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ static void filter_wl_update(void)
|
|||
for (i = 0; i < WL_SIZE; i++) {
|
||||
int j = wl[i].rl_idx;
|
||||
|
||||
if (!rl_enable || j < ARRAY_SIZE(rl) || !rl[j].pirk ||
|
||||
if (!rl_enable || j >= ARRAY_SIZE(rl) || !rl[j].pirk ||
|
||||
rl[j].dev) {
|
||||
filter_insert(&wl_filter, i, wl[i].id_addr_type,
|
||||
wl[i].id_addr.val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue