Skip to content

Bluetooth: Host: Disconnected bonds affect _bt_gatt_ccc.value #61260

@alwa-nordic

Description

@alwa-nordic

The documentation on _bt_gatt_ccc.value specifies that only connected peers contribute to that value. But if CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=n, the implementation summarizes over all stores CCC values, including (bonded) disconnected peers.

for (i = 0; i < ARRAY_SIZE(ccc->cfg); i++) {
if (ccc->cfg[i].value > value) {
value = ccc->cfg[i].value;
}
}

Expected behavior
Only connected peers should be included in the summarized value.

Metadata

Metadata

Assignees

Labels

area: Bluetootharea: Bluetooth HostBluetooth Host (excluding BR/EDR)bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions