Skip to content

Commit

Permalink
Bluetooth: TBS: Ensure sending notifications
Browse files Browse the repository at this point in the history
The existing implemented only attempted to send all notifications,
but if host was out of ATT TX buffers the notifications would fail
and the client may miss out on important information, and would be
a spec violation.

This commit refactors notificatios in TBS so that they are always
sent.

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley committed Jan 10, 2025
1 parent f07063d commit a3cf21a
Show file tree
Hide file tree
Showing 3 changed files with 741 additions and 96 deletions.
8 changes: 8 additions & 0 deletions subsys/bluetooth/audio/Kconfig.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ config BT_TBS_MAX_SCHEME_LIST_LENGTH
help
Sets the maximum length of the URI scheme list.

config BT_TBS_LOCK_TIMEOUT
int "Milliseconds of timeout when handling concurrent operations"
range 0 1000
default 10
help
The number of milliseconds that the TBS implementation will maximum wait before rejecting
an write request if another is already in progress in another thread.

endif # BT_TBS


Expand Down
Loading

0 comments on commit a3cf21a

Please sign in to comment.