tools: Handle the common profile & service ecode 64/51264/2
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Fri, 6 Nov 2015 04:36:30 +0000 (10:06 +0530)
committerGowtham Anandha Babu <gowtham.ab@samsung.com>
Fri, 6 Nov 2015 04:58:09 +0000 (10:28 +0530)
Handles the common profile and service error codes sent over the
Attribute Protocol in btgatt-client and monitor.

git repo link:
https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=25eadc12eada033a0a918410084b739122619d62

Change-Id: I11c03d6bde29929c9fff55b8ad27597034707ad4

monitor/l2cap.c
tools/btgatt-client.c

index 5faa26f..5a2ee91 100644 (file)
@@ -2045,6 +2045,15 @@ static void att_error_response(const struct l2cap_frame *frame)
        case 0x11:
                str = "Insufficient Resources";
                break;
+       case 0xfd:
+               str = "CCC Improperly Configured";
+               break;
+       case 0xfe:
+               str = "Procedure Already in Progress";
+               break;
+       case 0xff:
+               str = "Out of Range";
+               break;
        default:
                str = "Reserved";
                break;
index c90f265..02d9b57 100644 (file)
@@ -112,6 +112,12 @@ static const char *ecode_to_string(uint8_t ecode)
                return "Group type Not Supported";
        case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
                return "Insufficient Resources";
+       case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
+               return "CCC Improperly Configured";
+       case BT_ERROR_ALREADY_IN_PROGRESS:
+               return "Procedure Already in Progress";
+       case BT_ERROR_OUT_OF_RANGE:
+               return "Out of Range";
        default:
                return "Unknown error type";
        }