Skip to content

Commit 9c0786c

Browse files
faisalSaleemSetecnashif
authored andcommitted
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 <[email protected]>
1 parent d7275e8 commit 9c0786c

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4424,7 +4424,7 @@ int bt_smp_auth_pairing_confirm(struct bt_conn *conn)
44244424
int bt_passkey_set(unsigned int passkey)
44254425
{
44264426
if (passkey == BT_PASSKEY_INVALID) {
4427-
passkey = BT_PASSKEY_INVALID;
4427+
fixed_passkey = BT_PASSKEY_INVALID;
44284428
return 0;
44294429
}
44304430

0 commit comments

Comments
 (0)