diff --git a/src/hci.c b/src/hci.c index 056edd837..587c3908d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -726,10 +726,9 @@ void le_handle_advertisement_report(uint8_t *packet, int size){ int i; log_info("HCI: handle adv report with num reports: %d", num_reports); - uint8_t event[2 + LE_ADVERTISING_DATA_SIZE]; // use upper bound to avoid var size automatic var + uint8_t event[12 + LE_ADVERTISING_DATA_SIZE]; // use upper bound to avoid var size automatic var for (i=0; ipacket_handler(HCI_EVENT_PACKET, event, sizeof(event)); + hci_dump_packet( HCI_EVENT_PACKET, 0, event, pos); + hci_stack->packet_handler(HCI_EVENT_PACKET, event, pos); } } #endif