zephyr/subsys/bluetooth/host
Joakim Andersson 58908aa5d0 Bluetooth: host: Fix missing connection id checks
Fix issue where a new connection with the same peer would use the CCC
from from first connection, despite different local identity.
Since there is no CCC for the new connection yet this caused the
application to think that CCC was enabled but the remote device had not
yet subscribed.

Fix this issue by making the id as an input to the peer address check
function. This will force us to make the check every time. This commit
might also fix similar issues not yes discovered as the ID check was
missing in a few other places as well.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-02-21 21:28:30 +02:00
..
a2dp.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
a2dp_internal.h Bluetooth: A2DP: Stream End Point Structure 2017-01-28 08:43:41 +02:00
aes_ccm.c Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
at.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
at.h tests: bluetooth/at: Fix string signedness issues 2017-09-26 12:56:50 +03:00
att.c Bluetooth: ATT: Fix ATT corrupting mem_slab structure after free 2020-01-28 17:55:38 +02:00
att_internal.h Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
avdtp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
avdtp_internal.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
CMakeLists.txt Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
conn.c Bluetooth: host: Fix missing connection id checks 2020-02-21 21:28:30 +02:00
conn_internal.h Bluetooth: host: Fix missing connection id checks 2020-02-21 21:28:30 +02:00
crypto.c Bluetooth: Fix infinite recursion in host-based bt_rand 2020-01-31 18:33:06 +01:00
crypto.h Bluetooth: Make LE Encrypt helpers public 2017-03-21 17:05:42 -07:00
ecc.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
gatt.c Bluetooth: host: Fix missing connection id checks 2020-02-21 21:28:30 +02:00
gatt_internal.h Bluetooth: GATT: Use check_perm to check CCC permission 2019-09-19 21:12:39 +03:00
hci_core.c Bluetooth: host: Fix missing connection id checks 2020-02-21 21:28:30 +02:00
hci_core.h Bluetooth: host: Handle starting roles with different random address 2020-01-20 18:58:02 +02:00
hci_ecc.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
hci_ecc.h Bluetooth: Make bt_hci_driver instances link-time constants 2017-03-21 17:05:42 -07:00
hci_raw.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
hci_raw_internal.h Bluetooth: Make bt_hci_driver instances link-time constants 2017-03-21 17:05:42 -07:00
hfp_hf.c Bluetooth: Remove usage of BT_BUF_USER_DATA_MIN 2019-11-28 13:35:11 +02:00
hfp_internal.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
Kconfig bluetooth: host: fix RPMsg driver headroom configuration 2020-02-11 13:23:50 +02:00
Kconfig.gatt Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
Kconfig.l2cap kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
keys.c bluetooth: host: Fix simultaneous pairings getting the same keys slot 2020-01-31 12:50:03 +02:00
keys.h Bluetooth: host: Rethink how unpair all works 2020-01-04 14:10:46 +01:00
keys_br.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
l2cap.c Bluetooth: L2CAP: Fix not queueing in case there are no credits 2020-02-10 22:08:14 +02:00
l2cap_br.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
l2cap_internal.h Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
monitor.c bluetooth: monitor: don't build backend if minimal 2019-10-01 09:24:02 -04:00
monitor.h Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
rfcomm.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
rfcomm_internal.h Bluetooth: hci_raw: Add support for specifying buffer headroom 2019-11-20 19:29:06 +01:00
sdp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
sdp_internal.h Bluetooth: convert to using newly introduced integer sized types 2017-04-20 13:25:23 -05:00
settings.c Bluetooth: Setting: Make bt_settings_encode_key take a const address 2020-02-14 14:15:11 +02:00
settings.h Bluetooth: Setting: Make bt_settings_encode_key take a const address 2020-02-14 14:15:11 +02:00
smp.c Bluetooth: test: Delay SMP pairing distribution phase when testing 2020-02-20 21:32:59 +02:00
smp.h Bluetooth: Host: Fix issues with host IRK handling 2019-12-20 15:45:34 +01:00
smp_null.c Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
testing.c Bluetooth: testing: Exclude Mesh related code if BT_MESH not set 2018-09-19 10:48:39 +03:00
testing.h Bluetooth: testing: Exclude Mesh related code if BT_MESH not set 2018-09-19 10:48:39 +03:00
uuid.c Bluetooth: UUID: Expose bt_uuid_to_str to application 2019-12-09 17:15:05 +02:00