Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/bluez] 0b64d6: shared/rap: Add client ranging registration and no...
@ 2026-06-04 11:24 prathibhamadugonde
  0 siblings, 0 replies; only message in thread
From: prathibhamadugonde @ 2026-06-04 11:24 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/1105806
  Home:   https://github.com/bluez/bluez
  Commit: 0b64d66091079975c6b59586bd299d12ca19f809
      https://github.com/bluez/bluez/commit/0b64d66091079975c6b59586bd299d12ca19f809
  Author: Prathibha Madugonde <prathibha.madugonde@oss.qualcomm.com>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

  Changed paths:
    M src/shared/rap.c
    M src/shared/rap.h

  Log Message:
  -----------
  shared/rap: Add client ranging registration and notification parsing

Read the RAS Features characteristic to determine whether the remote
device supports real-time ranging. If supported, register for real-time
characteristic notifications using the reqtracker for the CS initiator
role.

Parse incoming segmented RAS ranging data notifications by accumulating
segments via iovec and parsing complete subevent headers and CS mode 0-3
step data, including IQ/tone PCT samples, once the last segment arrives.

Changes in v2:
Removed unneccsary DBG logs and unused variables.
Use helper functions for readablitiy and code indentation.

Changes in v5:
Fix use-after-scope in read_ras_features where a stack-local padded
buffer was referenced after leaving its scope via iov. Use get_le32
on a properly scoped buffer instead.

Add null checks for resptracker and reqtracker in HCI subevent
callbacks to prevent crashes when config complete has not yet been
received.

Fix Mode 0 frequency offset parsing: the Measured Frequency Offset
field is 16 bits per the CS spec, not 32 bits. Update
CS_MODE_ZERO_WIRE_INIT_SIZE from 7 to 5 accordingly.

Fix step mode extraction mask from 0x7F to 0x03 since CS mode is
only 2 bits (modes 0-3).

Refactor parse_mode_three to call parse_mode_one and parse_mode_two
directly, eliminating duplicated code. Similarly refactor
get_mode_three_length to use get_mode_one_length + get_mode_two_length.

Fix typo 'reflecter' to 'reflector' in comments.

Fix DBG format specifiers: use %u for uint16_t length parameters.

Remove double blank line in fill_initiator_data_from_cs_subevent_result
and add TODO comments to stub functions.



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-04 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 11:24 [bluez/bluez] 0b64d6: shared/rap: Add client ranging registration and no prathibhamadugonde

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