Skip to content

Commit 18d1ca7

Browse files
lylezhu2012nashif
authored andcommitted
Bluetooth: classic: Fix LE LTK cannot be derived issue
In the handler of SMP_Pairing rsp, the encryption key flag is cleared incorrectly. It causes the LE LTK cannot be derived. Do not modify the encryption key flag to fix the issue. Signed-off-by: Lyle Zhu <[email protected]>
1 parent bb88d5f commit 18d1ca7

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,8 @@ static uint8_t smp_br_pairing_rsp(struct bt_smp_br *smp, struct net_buf *buf)
12581258
smp->local_dist &= rsp->init_key_dist;
12591259
smp->remote_dist &= rsp->resp_key_dist;
12601260

1261-
smp->local_dist &= SEND_KEYS_SC;
1262-
smp->remote_dist &= RECV_KEYS_SC;
1261+
smp->local_dist &= BR_SEND_KEYS_SC;
1262+
smp->remote_dist &= BR_RECV_KEYS_SC;
12631263

12641264
/* Peripheral distributes its keys first */
12651265

0 commit comments

Comments
 (0)