projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32eda7f
)
[OTP] Handle CCC Improperly Configured ATT ecode
69/138969/1
author
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Fri, 14 Jul 2017 12:05:00 +0000
(17:35 +0530)
committer
Gowtham Anandha Babu
<gowtham.ab@samsung.com>
Fri, 14 Jul 2017 12:05:00 +0000
(17:35 +0530)
Change-Id: Ic3519eade6c8108d7ee28dcb6a557a1db60113ea
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
src/gatt-database.c
patch
|
blob
|
history
diff --git
a/src/gatt-database.c
b/src/gatt-database.c
index
255583b
..
37b8b9b
100755
(executable)
--- a/
src/gatt-database.c
+++ b/
src/gatt-database.c
@@
-1893,6
+1893,9
@@
static uint8_t dbus_error_to_otp_ecode(const char *error_msg)
if (strcmp(error_msg, "Object Name Already Exists") == 0)
return BT_ATT_ERROR_OBJECT_NAME_EXISTS;
+ if (strcmp(error_msg, "CCC Improperly Configured") == 0)
+ return BT_ERROR_CCC_IMPROPERLY_CONFIGURED;
+
return 0x80; /* Default application error code */
}
#endif