Bluetooth: host: Fix update keys when using debug public key check
Fix the update keys check allowing to overwrite the keys when using debug keys. Instead the check disallowed overwriting keys made using debug keys. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
abd470cbe6
commit
2f588f946f
1 changed files with 2 additions and 2 deletions
|
@ -799,10 +799,10 @@ static bool update_debug_keys_check(struct bt_smp *smp)
|
|||
}
|
||||
|
||||
if (conn->le.keys->flags & BT_KEYS_DEBUG) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BT_PRIVACY) || defined(CONFIG_BT_SIGNING) || \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue