Skip to content
Commit 3486f133 authored by Jonathan Rico's avatar Jonathan Rico Committed by Carles Cufí
Browse files

Bluetooth: host: prevent registering services in the wrong context



There is a touchy spot where registering a service might result in sending
service changed indications that are not necessary. This is due to a race
condition between the SC work and the GATT DB hash being calculated.

Only allow users to call this API when we know it is safe:
- either before BT is initialized
- or after settings have been loaded (and hash calculated)

Fixes #54047

Signed-off-by: default avatarJonathan Rico <jonathan.rico@nordicsemi.no>
parent 02edcd64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment