zephyr/subsys/bluetooth/host
Jonathan Rico a7cf7eb393 Bluetooth: l2cap: change connected cb call condition for ECRED
This was recently refactored (in #58440). But it introduced a bug in which
some channels were connected but not the whole list asked for by the peer.

In that case, `result` will not be `SUCCESS` but we still want to call the
`connected` callback as the peer will consider those channels to be
connected when we send the response.

The symptom is that EATT channels are being instantiated, but not
considered connected (ie. usable by the stack).

Also introduce a test that has asymmetric channel resources (5 on central
vs 2 on peripheral) to reproduce the bug.

Fixes #60212

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-07-31 19:39:09 +00:00
..
a2dp_internal.h
a2dp.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
addr_internal.h BluetootH: Host: add helper functions for resolved addresses 2023-01-12 13:31:12 +01:00
addr.c Bluetooth: Host: Fix bt_addr_from_str for str starting with ':' 2023-06-05 08:31:06 -04:00
adv.c Bluetooth: adv: add USE_NRPA advertising option 2023-07-25 10:47:37 +02:00
adv.h
aes_ccm.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
at.c bluetooth: fix armclang compiler warnings with is*() functions 2023-03-31 09:19:16 +02:00
at.h
att_internal.h Bluetooth: att: Remove unused bt_att_free_tx_meta_data function 2023-07-24 09:09:44 +00:00
att.c Bluetooth: att: fix bt_eatt_count() 2023-07-31 19:39:09 +00:00
avdtp_internal.h
avdtp.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
br.c bluetooth: host: add checks for connection types 2023-07-05 09:15:48 +02:00
br.h
buf.c Bluetooth: Fix clearing sent_cmd pointer when allocating event buffer 2023-04-11 16:57:37 +02:00
CMakeLists.txt Bluetooth: Move bt_data_parse to dedicated source file 2023-03-16 11:46:36 +01:00
conn_internal.h bluetooth: host: track connection type enum 2023-07-05 09:15:48 +02:00
conn.c bt: host: Fix possible buffer overflow 2023-07-20 11:09:50 +00:00
crypto.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
crypto.h
data.c Bluetooth: Host: Move new bt_data functions to data.c 2023-03-21 18:17:52 +00:00
direction_internal.h
direction.c bluetooth: host: add checks for connection types 2023-07-05 09:15:48 +02:00
ecc.c tests: bluetooth: host: Add UT for bt_pub_key_gen() 2023-03-22 09:33:42 +01:00
ecc.h
gatt_internal.h
gatt.c Bluetooth: Host: Fix connection reference leak 2023-06-24 18:55:04 +02:00
hci_common.c
hci_core.c Bluetooth: Host: Introduce BT_CONN_PARAM_ANY 2023-07-14 09:40:52 +00:00
hci_core.h Bluetooth: id: Keep RPA as bt_addr_t 2023-05-12 10:55:50 +03:00
hci_ecc.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: hci_raw: Fix a LOG_ERR message 2023-04-28 10:33:18 -05:00
hfp_hf.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
hfp_internal.h
id.c Bluetooth: adv: add USE_NRPA advertising option 2023-07-25 10:47:37 +02:00
id.h
iso_internal.h Bluetooth: audio: Fix declaring conn type object in header file 2023-03-28 15:07:09 +02:00
iso.c Bluetooth: ISO: Add advanced broadcast ISO parameters 2023-07-31 09:04:52 +00:00
Kconfig Bluetooth: Host: Introduce BT_CONN_PARAM_ANY 2023-07-14 09:40:52 +00:00
Kconfig.gatt Bluetooth: Host: Introduce BT_CONN_PARAM_ANY 2023-07-14 09:40:52 +00:00
Kconfig.l2cap Bluetooth: Mesh: Reduce BT_L2CAP_TX_MTU for mesh to 33 2023-06-29 10:05:03 +00:00
keys_br.c Bluetooth: Host: Use custom API for Bluetooth settings 2023-06-17 07:58:07 -04:00
keys.c Bluetooth: Host: Use custom API for Bluetooth settings 2023-06-17 07:58:07 -04:00
keys.h
l2cap_br.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
l2cap_internal.h iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
l2cap.c Bluetooth: l2cap: change connected cb call condition for ECRED 2023-07-31 19:39:09 +00:00
long_wq.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
long_wq.h
monitor.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
monitor.h
rfcomm_internal.h
rfcomm.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
scan.c bluetooth: host: add checks for connection types 2023-07-05 09:15:48 +02:00
scan.h
sdp_internal.h
sdp.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
settings.c Bluetooth: Host: Use custom API for Bluetooth settings 2023-06-17 07:58:07 -04:00
settings.h Bluetooth: Host: Use custom API for Bluetooth settings 2023-06-17 07:58:07 -04:00
smp_null.c Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
smp.c bluetooth: host: smp: Add bondable flag overlay per connection 2023-07-07 14:55:29 +03:00
smp.h Bluetooth: Host: SMP Keypress Notification 2023-03-13 14:04:25 +01:00
ssp.c bluetooth: host: add checks for connection types 2023-07-05 09:15:48 +02:00
ssp.h
testing.c Bluetooth: Mesh: Add Model Receive testing callback 2023-03-06 13:52:15 +01:00
testing.h Bluetooth: Mesh: Add Model Receive testing callback 2023-03-06 13:52:15 +01:00
uuid.c