Skip to content

Bluetooth: CCC values should be treated as bitfields #81004

@alwa-nordic

Description

@alwa-nordic

See #80988 (comment).

A CCC value is a bitfield. When testing for BT_GATT_CCC_NOTIFY and BT_GATT_CCC_INDICATE, & should be used instead of ==.

This issue is about all misuses like this. Some may be benign, but this issue is labeled 'bug' because it's likely some instances may be a bug that can be triggered in a multiple connection scenario.

More info the comment thread linked above. This issue is to be refined.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions