Bluetooth: SMP: Fix key distribution for master
In Pairing Response is locally distributed keys are Initiator Key Distribution. Change-Id: Ic1032d0d08c4d88fd8b133d0d087935f065912d1 Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
This commit is contained in:
parent
71252551e3
commit
50d9860509
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ static uint8_t smp_pairing_rsp(struct bt_conn *conn, struct bt_buf *buf)
|
|||
return BT_SMP_ERR_ENC_KEY_SIZE;
|
||||
}
|
||||
|
||||
smp->local_dist &= rsp->resp_key_dist;
|
||||
smp->local_dist &= rsp->init_key_dist;
|
||||
|
||||
/* Store rsp for later use */
|
||||
smp->prsp[0] = BT_SMP_CMD_PAIRING_RSP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue