Bluetooth: SMP: Fix key type in security request

Required key is LTK not IRK.

Change-Id: Ibbb27b08867d88e74b30ccb592994f169b455bf9
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-06-30 15:07:45 +02:00 committed by Anas Nashif
commit c5759f18a8

View file

@ -688,7 +688,7 @@ static uint8_t smp_security_request(struct bt_conn *conn, struct bt_buf *buf)
BT_DBG("\n");
keys = bt_keys_find(BT_KEYS_IRK, &conn->dst);
keys = bt_keys_find(BT_KEYS_LTK, &conn->dst);
if (!keys) {
goto pair;
}