[OTP] Handle CCC Improperly Configured ATT ecode 69/138969/1
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Fri, 14 Jul 2017 12:05:00 +0000 (17:35 +0530)
committerGowtham 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

index 255583b..37b8b9b 100755 (executable)
@@ -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