mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-23 11:43:24 +00:00
hci: fix receive of iso packets
This commit is contained in:
parent
9d8b6c8925
commit
062276f92b
@ -4628,7 +4628,7 @@ static void sco_handler(uint8_t * packet, uint16_t size){
|
|||||||
static void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
static void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
||||||
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
|
||||||
// propagate ISO packets received as ACL
|
// propagate ISO packets received as ACL
|
||||||
hci_iso_stream_t * iso_stream;
|
hci_iso_stream_t * iso_stream = NULL;
|
||||||
if ((packet_type == HCI_ACL_DATA_PACKET) && (size >= HCI_ACL_HEADER_SIZE)){
|
if ((packet_type == HCI_ACL_DATA_PACKET) && (size >= HCI_ACL_HEADER_SIZE)){
|
||||||
hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
|
hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
|
||||||
iso_stream = hci_iso_stream_for_con_handle(con_handle);
|
iso_stream = hci_iso_stream_for_con_handle(con_handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user