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:
parent
bb88d5f1f1
commit
18d1ca7c78
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue