sm: release setup context after sending LTK negative reply

This commit is contained in:
Matthias Ringwald 2016-05-31 19:14:25 +02:00
parent cfd5ff7427
commit 7dbe5dcf89

View File

@ -2034,6 +2034,7 @@ static void sm_run(void){
case SM_RESPONDER_PH0_SEND_LTK_REQUESTED_NEGATIVE_REPLY:
connection->sm_engine_state = SM_RESPONDER_IDLE;
hci_send_cmd(&hci_le_long_term_key_negative_reply, connection->sm_handle);
sm_done_for_handle(connection->sm_handle);
return;
#ifdef ENABLE_LE_SECURE_CONNECTIONS