Set the write request type for gatt characteristic 22/180722/1
authorAmit Purwar <amit.purwar@samsung.com>
Fri, 1 Jun 2018 09:41:16 +0000 (15:11 +0530)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 1 Jun 2018 09:50:48 +0000 (15:20 +0530)
Change-Id: Ie75eaeecb7aa784be8e01d6a5112ba52b173d2cb
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c

index 3d47474..649639e 100644 (file)
@@ -1064,6 +1064,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                req_info->attr_path = g_strdup(object_path);
                req_info->svc_path = g_strdup(svc_info->serv_path);
                req_info->request_id = req_id;
+               req_info->request_type = BT_HAL_GATT_REQUEST_TYPE_READ;
                req_info->offset = offset;
                req_info->context = invocation;
 
@@ -1135,6 +1136,7 @@ static void __bt_gatt_char_method_call(GDBusConnection *connection,
                        req_info->attr_path = g_strdup(object_path);
                        req_info->svc_path = g_strdup(svc_info->serv_path);
                        req_info->request_id = req_id;
+                       req_info->request_type = BT_HAL_GATT_REQUEST_TYPE_WRITE;
                        req_info->offset = offset;
                        req_info->context = invocation;