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:
parent
3f8e289402
commit
c5759f18a8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue