From 5029941384d2acfb1c0209f437dc51cb0e0678d1 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 7 Mar 2019 11:58:00 +0100 Subject: [PATCH] hci: use active voice settings for CSR SCI-over-HCI fix --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 478a8bb76..1acf6a40f 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2544,7 +2544,7 @@ static void sco_handler(uint8_t * packet, uint16_t size){ // CSR 8811 prefixes 60 byte SCO packet in transparent mode with 20 zero bytes -> skip first 20 payload bytes if (hci_stack->manufacturer == BLUETOOTH_COMPANY_ID_CAMBRIDGE_SILICON_RADIO){ - if (size == 83 && ((hci_stack->sco_voice_setting & 0x03) == 0x03)){ + if (size == 83 && ((hci_stack->sco_voice_setting_active & 0x03) == 0x03)){ packet[2] = 0x3c; memmove(&packet[3], &packet[23], 63); size = 63;