Bluetooth: SMP: fix for bt fixed passkey BT_PASSKEY_INVALID
when BT_PASSKEY_INVALID was set, it never updated the fixed passkey which made its use ineffective Signed-off-by: Faisal Saleem <faisal.saleem@setec.com.au>
This commit is contained in:
parent
54b7439cae
commit
b8c33efb78
1 changed files with 1 additions and 1 deletions
|
@ -5483,7 +5483,7 @@ int bt_smp_auth_pairing_confirm(struct bt_conn *conn)
|
|||
int bt_passkey_set(unsigned int passkey)
|
||||
{
|
||||
if (passkey == BT_PASSKEY_INVALID) {
|
||||
passkey = BT_PASSKEY_INVALID;
|
||||
fixed_passkey = BT_PASSKEY_INVALID;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue