hci: fix spelling of hci_dedicated_bonding_defer_disconnect

This commit is contained in:
Matthias Ringwald 2023-05-10 18:00:48 +02:00
parent 553c940898
commit f82b8f4bf2
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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