From: Gowtham Anandha Babu Date: Fri, 14 Jul 2017 12:05:00 +0000 (+0530) Subject: [OTP] Handle CCC Improperly Configured ATT ecode X-Git-Tag: accepted/tizen/unified/20170721.024500~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd75ada3b71f1a3d58d30c3ab47d32550bd5449f;p=platform%2Fupstream%2Fbluez.git [OTP] Handle CCC Improperly Configured ATT ecode Change-Id: Ic3519eade6c8108d7ee28dcb6a557a1db60113ea Signed-off-by: Gowtham Anandha Babu --- diff --git a/src/gatt-database.c b/src/gatt-database.c index 255583b..37b8b9b 100755 --- 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