mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
hci: propagate ISO packets received as ACL
This commit is contained in:
parent
f4c1930994
commit
4248f37e23
12
src/hci.c
12
src/hci.c
@ -4588,6 +4588,18 @@ static void sco_handler(uint8_t * packet, uint16_t size){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
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
|
||||||
|
// propagate ISO packets received as ACL
|
||||||
|
hci_iso_stream_t * iso_stream;
|
||||||
|
if ((packet_type == HCI_ACL_DATA_PACKET) && (size >= HCI_ACL_HEADER_SIZE)){
|
||||||
|
hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
|
||||||
|
iso_stream = hci_iso_stream_for_con_handle(con_handle);
|
||||||
|
if (iso_stream != NULL){
|
||||||
|
packet_type = HCI_ISO_DATA_PACKET;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
hci_dump_packet(packet_type, 1, packet, size);
|
hci_dump_packet(packet_type, 1, packet, size);
|
||||||
switch (packet_type) {
|
switch (packet_type) {
|
||||||
case HCI_EVENT_PACKET:
|
case HCI_EVENT_PACKET:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user