return true for can send SCO packet now if synchronous flow control is not enabled

This commit is contained in:
Matthias Ringwald 2015-11-11 15:53:48 +01:00
parent 021517889e
commit ed361f5fa1
2 changed files with 4 additions and 0 deletions

View File

@ -401,6 +401,7 @@ int hci_can_send_prepared_sco_packet_now(hci_con_handle_t con_handle){
return 0;
}
}
if (!hci_stack->synchronous_flow_control_enabled) return 1;
return hci_number_free_sco_slots_for_handle(con_handle) > 0;
}

View File

@ -587,6 +587,8 @@ typedef enum hci_init_state{
HCI_INIT_W4_WRITE_SIMPLE_PAIRING_MODE,
HCI_INIT_WRITE_PAGE_TIMEOUT,
HCI_INIT_W4_WRITE_PAGE_TIMEOUT,
HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
HCI_INIT_W4_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
HCI_INIT_WRITE_CLASS_OF_DEVICE,
HCI_INIT_W4_WRITE_CLASS_OF_DEVICE,
@ -670,6 +672,7 @@ typedef struct {
uint16_t acl_data_packet_length;
uint8_t sco_packets_total_num;
uint8_t sco_data_packet_length;
uint8_t synchronous_flow_control_enabled;
uint8_t le_acl_packets_total_num;
uint16_t le_data_packets_length;