Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ v2 0/6] RAP: Move CS default settings
@ 2026-06-30 13:39 Naga Bhavani Akella
  2026-06-30 13:39 ` [PATCH BlueZ v2 1/6] shared: remove default settings params from bt_rap_attach_hci Naga Bhavani Akella
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Naga Bhavani Akella @ 2026-06-30 13:39 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: luiz.dentz, quic_mohamull, quic_hbandi, quic_anubhavg,
	Naga Bhavani Akella

This series removes CS default settings (role, cs_sync_ant_sel, and
max_tx_power) from RAP initialization and configuration paths where they
do not logically belong.

These parameters are measurement-session specific and are already supplied
through StartMeasurement. Keeping them in main.conf and passing them during
HCI attachment introduces unnecessary duplication and mixes per-session
configuration with device initialization.

The changes in this series:

  1. Remove CS default settings from main.conf parsing and configuration.
  2. Update bt_rap_attach_hci() callers to stop passing these parameters.
  3. Simplify bt_rap_attach_hci() by removing the corresponding arguments.
  4. Remove wrapper API

Changes in v2:
- Change title for patchset 2 to reduce length


Naga Bhavani Akella (6):
  shared: remove default settings params from bt_rap_attach_hci
  profiles: update bt_rap_attach_hci call to drop def settings
  rap: remove CS default settings from main.conf
  shared: replace the wrapper API
  profiles: replace wrapper API
  shared: remove wrapper API

 profiles/ranging/rap.c     |   5 +-
 profiles/ranging/rap_hci.c |  27 +++-----
 src/btd.h                  |   7 --
 src/main.c                 | 127 +------------------------------------
 src/main.conf              |  24 -------
 src/shared/rap.h           |   4 +-
 6 files changed, 13 insertions(+), 181 deletions(-)

-- 


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH BlueZ v1 1/6] shared: remove default settings params from bt_rap_attach_hci
@ 2026-06-30 10:11 Naga Bhavani Akella
  2026-06-30 12:20 ` RAP: Move CS default settings bluez.test.bot
  0 siblings, 1 reply; 11+ messages in thread
From: Naga Bhavani Akella @ 2026-06-30 10:11 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: luiz.dentz, quic_mohamull, quic_hbandi, quic_anubhavg,
	Naga Bhavani Akella

role, cs_sync_ant_sel and max_tx_power were passed into bt_rap_attach_hci
but these are CS default settings that belong to the measurement session,
Callers need to set them via bt_rap_set_default_settings_params() in
start_measurement where they belong, alongside the other per-session
CS parameters
---
 src/shared/rap.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/shared/rap.h b/src/shared/rap.h
index 7bc49f03d..45be14dde 100644
--- a/src/shared/rap.h
+++ b/src/shared/rap.h
@@ -206,9 +206,11 @@ void bt_rap_hci_cs_subevent_result_cont_callback(uint16_t length,
 						  const void *param,
 						  void *user_data);
 
+/* Wrapper to be removed */
 void *bt_rap_attach_hci(struct bt_rap *rap, struct bt_hci *hci,
 			uint8_t role, uint8_t cs_sync_ant_sel,
 			int8_t max_tx_power);
+void *bt_rap_attach_hci_v2(struct bt_rap *rap, struct bt_hci *hci);
 void bt_rap_detach_hci(struct bt_rap *rap, void *hci_sm);
 
 /* Connection handle mapping functions */
-- 


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

end of thread, other threads:[~2026-07-01  7:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 13:39 [PATCH BlueZ v2 0/6] RAP: Move CS default settings Naga Bhavani Akella
2026-06-30 13:39 ` [PATCH BlueZ v2 1/6] shared: remove default settings params from bt_rap_attach_hci Naga Bhavani Akella
2026-06-30 16:27   ` RAP: Move CS default settings bluez.test.bot
2026-06-30 13:39 ` [PATCH BlueZ v2 2/6] profiles: update bt_rap_attach_hci call to drop def settings Naga Bhavani Akella
2026-06-30 13:39 ` [PATCH BlueZ v2 3/6] rap: remove CS default settings from main.conf Naga Bhavani Akella
2026-06-30 13:39 ` [PATCH BlueZ v2 4/6] shared: replace the wrapper API Naga Bhavani Akella
2026-06-30 13:39 ` [PATCH BlueZ v2 5/6] profiles: replace " Naga Bhavani Akella
2026-06-30 13:39 ` [PATCH BlueZ v2 6/6] shared: remove " Naga Bhavani Akella
2026-06-30 18:34 ` [PATCH BlueZ v2 0/6] RAP: Move CS default settings Luiz Augusto von Dentz
2026-07-01  7:29   ` Naga Bhavani Akella
  -- strict thread matches above, loose matches on Subject: below --
2026-06-30 10:11 [PATCH BlueZ v1 1/6] shared: remove default settings params from bt_rap_attach_hci Naga Bhavani Akella
2026-06-30 12:20 ` RAP: Move CS default settings bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox