Fix 128-bit Servie UUID parsing issue 62/227262/1 accepted/tizen/unified/20200312.234412 submit/tizen/20200310.235006
authorWootak Jung <wootak.jung@samsung.com>
Wed, 11 Mar 2020 04:31:01 +0000 (13:31 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 11 Mar 2020 04:31:01 +0000 (13:31 +0900)
Change-Id: I96a53e0667f84d5136c6fc7c69631febd5657f4e

bt-oal/bluez_hal/src/bt-hal-adapter-le.c

index 856f022..27e939d 100644 (file)
@@ -498,7 +498,7 @@ static void __bt_hal_parse_uuid(int len, char *src, uint8_t *dest, int *length,
                                dest[index+1] = 0x15; /* AD Type */
                        else
                                dest[index+1] = 0x06; /* AD Type */
-                       memcpy(&(dest[index + 2]), &src[12], byte_len);
+                       memcpy(&(dest[index + 2]), &src[0], byte_len);
                        /* Update current type */
                        prev_byte_len = byte_len;
                        *length += 18;