Fix attributes for HID Device. 14/139514/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Wed, 19 Jul 2017 07:44:10 +0000 (16:44 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Wed, 19 Jul 2017 07:44:10 +0000 (16:44 +0900)
Change-Id: I3916c462aaffd1f376a3144831f215393102afc9
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
src/profile.c

index 3ff1ba4..41ddab1 100644 (file)
        <attribute id=\"0x0009\">       \
                <sequence>      \
                        <sequence>      \
-                               <uuid value=\"0x0011\" />       \
-                               <uint16 value=\"0x0100\" />     \
+                               <uuid value=\"0x1124\" />       \
+                               <uint16 value=\"0x%04x\" />     \
                        </sequence>     \
                </sequence>     \
        </attribute>    \
        <attribute id=\"0x020b\">       \
                <uint16 value=\"0x0100\" />     \
        </attribute>    \
+       <attribute id=\"0x020d\">       \
+               <boolean value=\"true\" />      \
+       </attribute>    \
        <attribute id=\"0x020e\">       \
                <boolean value=\"true\" />      \
        </attribute>    \
@@ -2228,7 +2231,7 @@ static char *get_sync_record(struct ext_profile *ext, struct ext_io *l2cap,
 static char *get_hid_device_record(struct ext_profile *ext, struct ext_io *l2cap,
                                                        struct ext_io *rfcomm)
 {
-       return g_strdup(HID_DEVICE_RECORD);
+       return g_strdup_printf(HID_DEVICE_RECORD, ext->version);
 }
 #endif