From ed325439e7336a5ba49f9a67fa3dc7fe2a392d5b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 20 Feb 2021 22:56:32 +0100 Subject: [PATCH] hci: emit sco can send now when sco packet is received for HAVE_SCO_TRANSPORT --- src/hci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hci.c b/src/hci.c index ffafde7fd..cd6cf7782 100644 --- a/src/hci.c +++ b/src/hci.c @@ -3013,6 +3013,12 @@ static void sco_handler(uint8_t * packet, uint16_t size){ hci_stack->sco_packet_handler(HCI_SCO_DATA_PACKET, 0, packet, size); } +#ifdef HAVE_SCO_TRANSPORT + // We can send one packet for each received packet + conn->sco_tx_ready++; + hci_notify_if_sco_can_send_now(); +#endif + #ifdef ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL conn->num_packets_completed++; hci_stack->host_completed_packets = 1;