From 15c7aed6d99f370f7695f3dcb4c04d933d671543 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 19 Nov 2017 20:44:23 +0100 Subject: [PATCH] sm: release setup context after sending recalculated LTK for legacy pairing --- src/ble/sm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ble/sm.c b/src/ble/sm.c index 64fcedd1d..306afd4a1 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -2597,6 +2597,7 @@ static void sm_run(void){ reverse_128(setup->sm_ltk, ltk_flipped); connection->sm_engine_state = SM_RESPONDER_IDLE; hci_send_cmd(&hci_le_long_term_key_request_reply, connection->sm_handle, ltk_flipped); + sm_done_for_handle(connection->sm_handle); return; } case SM_RESPONDER_PH4_Y_GET_ENC: