[PATCH BlueZ] attrib-server: Fix sending "not supported" for indications/notifications

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

 



Now that our Attribute Client is able to handle notifications and
indications we don't need to respond that they are not supported.
---
 src/attrib-server.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/attrib-server.c b/src/attrib-server.c
index 6268fe4..5775861 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -981,6 +981,10 @@ static void channel_handler(const uint8_t *ipdu, uint16_t len,
 		break;
 	case ATT_OP_HANDLE_CNF:
 		return;
+	case ATT_OP_HANDLE_IND:
+	case ATT_OP_HANDLE_NOTIFY:
+		/* The attribute client is already handling these */
+		return;
 	case ATT_OP_READ_MULTI_REQ:
 	case ATT_OP_PREP_WRITE_REQ:
 	case ATT_OP_EXEC_WRITE_REQ:
-- 
1.7.9.3

--
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