Skip to content

Commit b8c33ef

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 54b7439 commit b8c33ef

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
@@ -5483,7 +5483,7 @@ int bt_smp_auth_pairing_confirm(struct bt_conn *conn)
54835483
int bt_passkey_set(unsigned int passkey)
54845484
{
54855485
if (passkey == BT_PASSKEY_INVALID) {
5486-
passkey = BT_PASSKEY_INVALID;
5486+
fixed_passkey = BT_PASSKEY_INVALID;
54875487
return 0;
54885488
}
54895489

0 commit comments

Comments
 (0)