zephyr/include/bluetooth
Johan Hedberg 6a71a69f8d Bluetooth: GATT: Fix CCC handling
The 'valid' member of struct bt_gatt_ccc_cfg was redundant, since
setting 'peer' to BT_ADDR_LE_ANY does the same job. What's worse, the
handling of 'valid' was also buggy in that some places looking for
valid CCC structs only matched the address, meaning it might yield a
positive match for invalid entries.

Fix these issues by removing the 'valid' struct member, and solely
using the 'peer' member to identify valid entries. Also simplify the
code by acknowledging that no CCC entry is essentially the same as the
value '0' written to CCC.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-05-03 09:53:16 +01:00
..
mesh Bluetooth: Mesh: Convert to new net_buf_simple APIs 2018-02-13 14:00:08 +02:00
a2dp-codec.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
a2dp.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
att.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
avdtp.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
bluetooth.h Bluetooth: Remove 'own_addr' from advertising parameters 2018-03-21 18:11:49 +02:00
buf.h bt: Don't rely on 'enum bt_buf_type' being 1 byte 2018-01-29 06:58:42 -08:00
conn.h doc: fix misspellings in include (API docs) 2017-08-10 12:22:19 -04:00
crypto.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
gatt.h Bluetooth: GATT: Fix CCC handling 2018-05-03 09:53:16 +01:00
hci_raw.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
hci_vs.h Bluetooth: VS: Replace IRK with IR 2017-08-17 12:36:51 +02:00
hci.h Bluetooth: Mesh: Switch to using Linux Foundation Company ID 2018-03-05 19:54:21 -05:00
hfp_hf.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
l2cap.h doc: fix misspellings in include (API docs) 2017-08-10 12:22:19 -04:00
mesh.h Bluetooth: Mesh: Remove unnecessary #ifdefs from header file 2018-05-02 15:45:16 +01:00
rfcomm.h Bluetooth: Move common code to common/ 2017-05-12 12:56:14 +03:00
sdp.h Bluetooth: UUID: Remove macros defining 16 bit values 2018-02-13 13:33:48 +02:00
storage.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
testing.h Bluetooth: btp: Add event indicating expiration of incomp timer 2018-01-03 10:48:13 +01:00
uuid.h Bluetooth: UUID: Remove macros defining 16 bit values 2018-02-13 13:33:48 +02:00