All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1 1/2] shared/bap: Remove Locations, Support Context and Context defines
@ 2023-10-20 23:07 Luiz Augusto von Dentz
  2023-10-20 23:07 ` [PATCH BlueZ v1 2/2] client: Add support for setting Locations, SupportedContext and Context Luiz Augusto von Dentz
  2023-10-21  1:05 ` [BlueZ,v1,1/2] shared/bap: Remove Locations, Support Context and Context defines bluez.test.bot
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2023-10-20 23:07 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

These values shall come from the upper stack.
---
 src/shared/bap.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 14a62d9241eb..13bbcf7935bd 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -48,14 +48,6 @@
 
 #define BAP_PROCESS_TIMEOUT 10
 
-#define PACS_SRC_LOCATION 0x00000001
-#define PACS_SNK_LOCATION 0x00000003
-
-#define PACS_SRC_CTXT 0x000f
-#define PACS_SUPPORTED_SRC_CTXT PACS_SRC_CTXT
-#define PACS_SNK_CTXT 0x0fff
-#define PACS_SUPPORTED_SNK_CTXT PACS_SNK_CTXT
-
 struct bt_bap_pac_changed {
 	unsigned int id;
 	bt_bap_pac_func_t added;
@@ -475,13 +467,6 @@ static struct bt_pacs *pacs_new(struct gatt_db *db)
 
 	pacs = new0(struct bt_pacs, 1);
 
-	pacs->sink_loc_value = 0;
-	pacs->source_loc_value = 0;
-	pacs->sink_context_value = PACS_SNK_CTXT;
-	pacs->source_context_value = PACS_SRC_CTXT;
-	pacs->supported_sink_context_value = PACS_SUPPORTED_SNK_CTXT;
-	pacs->supported_source_context_value = PACS_SUPPORTED_SRC_CTXT;
-
 	/* Populate DB with PACS attributes */
 	bt_uuid16_create(&uuid, PACS_UUID);
 	pacs->service = gatt_db_add_service(db, &uuid, true, 19);
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-21  1:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20 23:07 [PATCH BlueZ v1 1/2] shared/bap: Remove Locations, Support Context and Context defines Luiz Augusto von Dentz
2023-10-20 23:07 ` [PATCH BlueZ v1 2/2] client: Add support for setting Locations, SupportedContext and Context Luiz Augusto von Dentz
2023-10-21  1:05 ` [BlueZ,v1,1/2] shared/bap: Remove Locations, Support Context and Context defines bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.