The below error is captured on bt-frwk.
Error : GDBus.Error:org.bluez.Error.Failed: Error return with body of type '(sy)':
Bluez sends the reply in (sy). But what we want is only att_ecode.
After fix, the application will get the proper att_ecode for
GATT read/write request.
Change-Id: Ib6abf0acd44fa70740913308b2d9748e34f39fab
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
DBusMessage *msg = entry->data;
if (err) {
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
reply = err > 0 ? create_gatt_dbus_error(msg, err) :
btd_error_failed(msg, strerror(-err));
-#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+#else
if (err > 0)
dbus_message_append_args(reply,
DBUS_TYPE_BYTE, &err,