From 88ed79cf894d4d3e6d3b1245304ef5f9411f0c9e Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Fri, 16 May 2014 22:35:59 +0000 Subject: [PATCH] fix ad report data --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index efa527219..682eb8a41 100644 --- a/src/hci.c +++ b/src/hci.c @@ -547,7 +547,7 @@ static void le_handle_advertisement_report(uint8_t *packet, int size){ pos += 6; event[pos++] = packet[4+num_reports*9+total_data_length + i]; event[pos++] = data_length; - memcpy(&packet[4+num_reports*9+data_offset], &event[pos], data_length); + memcpy(&event[pos], &packet[4+num_reports*9+data_offset], data_length); data_offset += data_length; pos += data_length; hci_stack->packet_handler(HCI_EVENT_PACKET, event, sizeof(event));