Fixed the descriptor write send response 94/199594/1
authorAmit Purwar <amit.purwar@samsung.com>
Wed, 13 Feb 2019 07:14:02 +0000 (12:44 +0530)
committerAmit Purwar <amit.purwar@samsung.com>
Wed, 13 Feb 2019 07:17:14 +0000 (12:47 +0530)
Change-Id: I803b2c389872294e475caab40bb1d15b6aaf2cb8
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c

index a280c3d..c46a45e 100644 (file)
@@ -962,6 +962,7 @@ static void __bt_gatt_desc_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;
 
@@ -1033,6 +1034,7 @@ static void __bt_gatt_desc_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;