[PATCH] tools: Handle the common profile & service ecode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Handles the common profile and service error codes sent over the
Attribute Protocol in btgatt-client and monitor.
---
 monitor/l2cap.c       | 9 +++++++++
 tools/btgatt-client.c | 6 ++++++
 2 files changed, 15 insertions(+)

diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index fc565b1..55efa54 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -2046,6 +2046,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;
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index ee5315d..3935a7e 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -114,6 +114,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";
 	}
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux