Thread (21 messages) 21 messages, 5 authors, 2026-02-26
STALE149d

[PATCH BlueZ 04/12] peripheral: replace ATT_CID with shared BT_ATT_CID

From: Christian Eggers <ceggers@arri.de>
Date: 2026-02-25 16:18:22
Subsystem: the rest · Maintainer: Linus Torvalds

Avoid multiple definitions of the same value.
---
 peripheral/gatt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index e3dd24632c12..d1ddf0c97516 100644
--- a/peripheral/gatt.c
+++ b/peripheral/gatt.c
@@ -30,8 +30,6 @@
 #include "src/shared/gatt-client.h"
 #include "peripheral/gatt.h"
 
-#define ATT_CID 4
-
 #define UUID_GAP 0x1800
 
 struct gatt_conn {
@@ -243,7 +241,7 @@ void gatt_server_start(void)
 
 	memset(&addr, 0, sizeof(addr));
 	addr.l2_family = AF_BLUETOOTH;
-	addr.l2_cid = htobs(ATT_CID);
+	addr.l2_cid = htobs(BT_ATT_CID);
 	memcpy(&addr.l2_bdaddr, static_addr, 6);
 	addr.l2_bdaddr_type = BDADDR_LE_RANDOM;
 
-- 
2.51.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help