Bluetooth: CCC values should be treated as bitfields #81004
Labels
area: Bluetooth Host
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
See #80988 (comment).
A CCC value is a bitfield. When testing for
BT_GATT_CCC_NOTIFY
andBT_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.
The text was updated successfully, but these errors were encountered: