summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Anandha Babu <gowtham.ab@samsung.com>2017-07-25 20:29:59 +0530
committerGowtham Anandha Babu <gowtham.ab@samsung.com>2017-07-25 20:29:59 +0530
commitb0d8700be3706be97444677825fec1ee420953ec (patch)
tree14dcb4886a4d70098764e44e84a520d043af2963
parent62a59e754fac129280f139c815d6709e3234ae2a (diff)
downloadbluetooth-b0d8700be3706be97444677825fec1ee420953ec.tar.gz
bluetooth-b0d8700be3706be97444677825fec1ee420953ec.tar.bz2
bluetooth-b0d8700be3706be97444677825fec1ee420953ec.zip
[Problem] Unalbe to pass application error code to central device [Cause & Measure] Pass the specific error code to central device [Checking Method] Reponse with the specific error to central device Change-Id: I169fa6456ad3421029868209c1df7850a2e5104f Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
-rw-r--r--src/bluetooth-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c
index 7cf1d62..a7fb862 100644
--- a/src/bluetooth-common.c
+++ b/src/bluetooth-common.c
@@ -2173,7 +2173,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
if (cb == NULL) {
bluetooth_gatt_send_response(read_req->req_id,
BLUETOOTH_GATT_ATT_REQUEST_TYPE_READ,
- BLUETOOTH_ERROR_INTERNAL, 0, NULL, 0);
+ BLUETOOTH_ATT_ERROR_INTERNAL, 0, NULL, 0);
return;
}
@@ -2197,7 +2197,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
bluetooth_gatt_send_response(value_change->req_id,
BLUETOOTH_GATT_ATT_REQUEST_TYPE_WRITE,
- BLUETOOTH_ERROR_INTERNAL, 0, NULL, 0);
+ BLUETOOTH_ATT_ERROR_INTERNAL, 0, NULL, 0);
return;
}