Skip to content

Bluetooth: Audio: Fix coverity issue with notifications #85058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Feb 3, 2025

Fixes #84684
Fixes #84685
Fixes #84735
Fixes #84748

Add a common function to get the maximum notification
size, instead of having multiple implementations of this.
Ideally this function should be moved to the GATT API,
but for now just implement it for LE audio and then move to
GATT later.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Instead of providing NULL for bt_gatt_notify_uuid we
iterate on the connection objects and ensure that we
properly truncate the notification based on each
connection's GATT MTU.

This ensures that we send the right size for all
connections.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@Thalley Thalley added this to the v4.1.0 milestone Feb 6, 2025
@Thalley Thalley added the bug The issue is a bug, or the PR is fixing a bug label Feb 6, 2025
@Thalley Thalley requested a review from cvinayak February 14, 2025 12:48
@fabiobaltieri fabiobaltieri merged commit 9eaf232 into zephyrproject-rtos:main Feb 14, 2025
29 checks passed
@Thalley Thalley deleted the audio_ntf_fixes branch February 14, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Audio area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
Status: Done
5 participants