Skip to content
Commit c9fd7a60 authored by Faisal Saleem's avatar Faisal Saleem Committed by Carles Cufí
Browse files

Bluetooth: Keys: Fix BT_KEYS_OVERWRITE_OLDEST logic for BT_MAX_CONN > 1

When the Bluetooth stack is configured for CONFIG_BT_MAX_CONN > 1
the oldest key might currently be in use.  Fix the logic to ensure the
oldest key overwritten is from the set of keys currently not in use.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/35999



Signed-off-by: default avatarFaisal Saleem <faisal.saleem@setec.com.au>
Signed-off-by: default avatarNick Ward <nick.ward@setec.com.au>
parent 1b4dad43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment