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
|
@ -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…
Reference in a new issue