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 <lyle.zhu@nxp.com>
This commit is contained in:
Lyle Zhu 2024-06-14 21:01:49 +08:00 committed by Anas Nashif
parent bb88d5f1f1
commit 18d1ca7c78

View file

@ -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 */