diff --git a/src/hci.c b/src/hci.c index c0f962dd2..cc5b5f54a 100644 --- a/src/hci.c +++ b/src/hci.c @@ -195,6 +195,10 @@ uint8_t hci_number_free_acl_slots(){ return free_slots; } +uint16_t hci_max_acl_data_packet_length(){ + return hci_stack.acl_data_packet_length; +} + int hci_ready_to_send(hci_con_handle_t handle){ return hci_number_free_acl_slots() && hci_number_outgoing_packets(handle) < 2; } diff --git a/src/hci.h b/src/hci.h index 56cfbd7ab..60d65fb77 100644 --- a/src/hci.h +++ b/src/hci.h @@ -250,6 +250,7 @@ uint8_t hci_number_free_acl_slots(); int hci_ready_to_send(hci_con_handle_t handle); int hci_authentication_active_for_handle(hci_con_handle_t handle); void hci_drop_link_key_for_bd_addr(bd_addr_t *addr); +uint16_t hci_max_acl_data_packet_length(); // void hci_emit_state();