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:
Szymon Janc 2015-07-01 18:39:33 +02:00 committed by Anas Nashif
commit 50d9860509

View file

@ -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;