hci: fix sco connection setup/accept for SCO over PCM

This commit is contained in:
Matthias Ringwald 2023-07-08 19:44:15 +02:00
parent 7f500823c0
commit bbdb580012

View File

@ -7348,7 +7348,6 @@ uint8_t hci_send_cmd_packet(uint8_t *packet, int size){
(void) memcpy(hci_stack->outgoing_addr, addr, 6); (void) memcpy(hci_stack->outgoing_addr, addr, 6);
break; break;
#if defined (ENABLE_SCO_OVER_HCI) || defined (HAVE_SCO_TRANSPORT)
case HCI_OPCODE_HCI_SETUP_SYNCHRONOUS_CONNECTION: case HCI_OPCODE_HCI_SETUP_SYNCHRONOUS_CONNECTION:
conn = hci_connection_for_handle(little_endian_read_16(packet, 3)); conn = hci_connection_for_handle(little_endian_read_16(packet, 3));
if (conn == NULL) { if (conn == NULL) {
@ -7408,7 +7407,6 @@ uint8_t hci_send_cmd_packet(uint8_t *packet, int size){
hci_stack->sco_voice_setting_active = little_endian_read_16(packet, 19); hci_stack->sco_voice_setting_active = little_endian_read_16(packet, 19);
break; break;
#endif #endif
#endif
#ifdef ENABLE_BLE #ifdef ENABLE_BLE
#ifdef ENABLE_LE_CENTRAL #ifdef ENABLE_LE_CENTRAL