Skip to content

Commit

Permalink
Bluetooth: classic: Fix LE LTK cannot be derived issue
Browse files Browse the repository at this point in the history
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 <lyle.zhu@nxp.com>
  • Loading branch information
lylezhu2012 authored and nashif committed Sep 25, 2024
1 parent bb88d5f commit 18d1ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/bluetooth/host/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,8 @@ static uint8_t smp_br_pairing_rsp(struct bt_smp_br *smp, struct net_buf *buf)
smp->local_dist &= rsp->init_key_dist;
smp->remote_dist &= rsp->resp_key_dist;

smp->local_dist &= SEND_KEYS_SC;
smp->remote_dist &= RECV_KEYS_SC;
smp->local_dist &= BR_SEND_KEYS_SC;
smp->remote_dist &= BR_RECV_KEYS_SC;

/* Peripheral distributes its keys first */

Expand Down

0 comments on commit 18d1ca7

Please sign in to comment.