Skip to content

Commit aed165d

Browse files
MarekPietastephanosio
authored andcommitted
Bluetooth: host: Fix SC indication on encrypt change
The SC indication can be sent only if the GATT Service Changed is enabled in the configuration. Change fixes build issues related to implicit sc_indicate declaration when Service Changed is disabled. Fixes: #54813 Signed-off-by: Marek Pieta <[email protected]>
1 parent 32e534c commit aed165d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/gatt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5748,7 +5748,7 @@ void bt_gatt_encrypt_change(struct bt_conn *conn)
57485748

57495749
bt_gatt_foreach_attr(0x0001, 0xffff, update_ccc, &data);
57505750

5751-
#if defined(CONFIG_BT_SETTINGS)
5751+
#if defined(CONFIG_BT_SETTINGS) && defined(CONFIG_BT_GATT_SERVICE_CHANGED)
57525752
if (!bt_gatt_change_aware(conn, false)) {
57535753
/* Send a Service Changed indication if the current peer is
57545754
* marked as change-unaware.

0 commit comments

Comments
 (0)