diff --git a/src/ble/sm.c b/src/ble/sm.c index faeaeb091..d335bea52 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -3968,7 +3968,7 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint sm_conn->sm_engine_state = SM_BR_EDR_INITIATOR_W4_FIXED_CHANNEL_MASK; } if (defer){ - hci_dedicated_bonding_defer_disconenct(con_handle, true); + hci_dedicated_bonding_defer_disconnect(con_handle, true); } } break; @@ -4051,7 +4051,7 @@ static void sm_event_packet_handler (uint8_t packet_type, uint16_t channel, uint sm_conn->sm_engine_state = SM_BR_EDR_INITIATOR_SEND_PAIRING_REQUEST; } else { sm_conn->sm_engine_state = SM_INITIATOR_CONNECTED; - hci_dedicated_bonding_defer_disconenct(con_handle, false); + hci_dedicated_bonding_defer_disconnect(con_handle, false); } } break; @@ -4660,7 +4660,7 @@ static void sm_pdu_handler(uint8_t packet_type, hci_con_handle_t con_handle, uin case SM_BR_EDR_INITIATOR_W4_PAIRING_RESPONSE: // dedicated bonding complete - hci_dedicated_bonding_defer_disconenct(sm_conn->sm_handle, false); + hci_dedicated_bonding_defer_disconnect(sm_conn->sm_handle, false); if (sm_pdu_code != SM_CODE_PAIRING_RESPONSE){ sm_pdu_received_in_wrong_state(sm_conn); diff --git a/src/hci.c b/src/hci.c index 3ecc3198f..6dc24033d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -7972,7 +7972,7 @@ int gap_dedicated_bonding(bd_addr_t device, int mitm_protection_required){ return 0; } -uint8_t hci_dedicated_bonding_defer_disconenct(hci_con_handle_t con_handle, bool defer){ +uint8_t hci_dedicated_bonding_defer_disconnect(hci_con_handle_t con_handle, bool defer){ hci_connection_t * connection = hci_connection_for_handle(con_handle); if (connection == NULL){ return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER; diff --git a/src/hci.h b/src/hci.h index 98395a3db..b5a5fee6f 100644 --- a/src/hci.h +++ b/src/hci.h @@ -1744,7 +1744,7 @@ HCI_STATE hci_get_state(void); void hci_deinit(void); // defer disconnect on dedicated bonding complete, used internally for CTKD -uint8_t hci_dedicated_bonding_defer_disconenct(hci_con_handle_t con_handle, bool defer); +uint8_t hci_dedicated_bonding_defer_disconnect(hci_con_handle_t con_handle, bool defer); // Only for PTS testing