Skip to content

Bluetooth: Host: _bt_gatt_ccc.value may include disconnected peers #81118

@alwa-nordic

Description

@alwa-nordic

When CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=n, the value of _bt_gatt_ccc.value is affected by CCC values from all bonds, not just connected peers.

The documentation for _bt_gatt_ccc.value specifies that only connected peers contribute to that value.

/** Highest value of all connected peer's subscriptions */
uint16_t value;

This bug makes the behavior of _bt_gatt_ccc.value depend on the state of CONFIG_BT_SETTINGS_CCC_LAZY_LOADING, so it cannot reasonably be fixed by keeping behavior and updating documentation.

See also discussion #79822

Metadata

Metadata

Labels

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions