From f6fbbebd2a7ad7ff7e97add191b46a57ca91e3c7 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Fri, 15 Aug 2014 14:42:18 +0000 Subject: [PATCH] corrected handling of advertising reports --- test/ble_client/advertising_data_parser.c | 62 +---------------------- 1 file changed, 2 insertions(+), 60 deletions(-) diff --git a/test/ble_client/advertising_data_parser.c b/test/ble_client/advertising_data_parser.c index 778bb6856..589a04cd0 100644 --- a/test/ble_client/advertising_data_parser.c +++ b/test/ble_client/advertising_data_parser.c @@ -103,64 +103,6 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){ printf("\n"); } -static void fix_mtk_advertisement_report(uint8_t * packet, uint16_t size){ - if (packet[0] != 0x3e) return; - if (packet[2] != 0x02) return; - int num_reports = packet[3]; - if (num_reports == 1) return; - - uint8_t fixed[257]; - - // header is correct - memcpy(fixed, packet, 4); - - // get total data length - int i; - uint16_t pos = 4; - int total_data_length = 0; - for (i=0; i