zephyr/subsys/bluetooth/host
Piotr Pryga ea1340acd3 Bluetooth: host: Add handling of failures in per sync established evt
Handling of HCI_LE_Periodic_Advertising_Sync_Established didn't
have implemented handling of possible failures of periodic
advertising synchronization.
There are two situations definded by BT 5.3 Core spec:
- There is no AUX_SYNC_IND pdu within 6 periodic advertising events.
  If that happens, status of the command is set to (0x3E) Connection
  Failed To Be Established / Synchronization Timeout.
- Periodic advertising has wrong CTE type while periodic advertising
  list is not used to determine the advertiser to listen.
  In this case status of the command is set to (0x1A) Unsupported
  Remote Feature.

The commit provides missing functionality.
In case of error, the periodic advertising will be deleted and
application will be notified by call to terminated callback.
The callback data were extended by err member. It provides
information why periodic advertising was terminated.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2021-11-18 17:12:22 +02:00
..
a2dp_internal.h
a2dp.c
addr.c
adv.c Bluetooth: Host: Fix setting long adv data with long AD fields 2021-11-02 13:25:01 +01:00
adv.h Bluetooth: host: Cancel limited adv timeout when advertising stopped 2021-08-30 14:41:20 +02:00
aes_ccm.c Bluetooth: host: Fix MIC generation in Bluetooth CCM encryption 2021-11-08 11:00:33 -05:00
at.c
at.h
att_internal.h Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
att.c kernel: atomics: update print specifiers for atomic_t 2021-11-15 09:59:01 -05:00
avdtp_internal.h Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
avdtp.c Bluetooth: host: Update AVDTP to use new delayable work API 2021-05-05 19:44:09 -04:00
br.c Bluetooth: hci: Align terms with the Bluetooth v5.3 spec 2021-09-17 16:05:01 +02:00
br.h
buf.c Bluetooth: ISO: Split ISO broadcast config 2021-10-18 12:43:38 +02:00
CMakeLists.txt Bluetooth: Update terms in public API to spec v5.3 2021-09-15 14:02:50 +03:00
conn_internal.h Bluetooth: host: Align with terms in v5.3 spec 2021-09-20 20:01:32 +02:00
conn.c kernel: atomics: update print specifiers for atomic_t 2021-11-15 09:59:01 -05:00
crypto.c
crypto.h
direction_internal.h Bluetooth: host: Add handl HCI_LE_Connectionless_IQ_Report 2021-05-06 16:27:16 +02:00
direction.c Bluetooth: host: df: Fix compilation warning in direction.c 2021-08-03 13:58:02 +02:00
ecc.c bluetooth: Add defines for ECC key lengths 2021-08-09 16:45:57 +02:00
ecc.h bluetooth: Add defines for ECC key lengths 2021-08-09 16:45:57 +02:00
gatt_internal.h Bluetooth: gatt: callbacks on ATT MTU update 2021-06-07 12:03:09 +02:00
gatt.c Bluetooth: Add check given services is register API 2021-11-03 18:57:03 +01:00
hci_common.c
hci_core.c Bluetooth: Host: avoid runtime warning in bt_enable 2021-11-17 12:40:20 +01:00
hci_core.h Bluetooth: host: check return value of bt_rand when creating identities 2021-09-27 17:14:20 +02:00
hci_ecc.c bluetooth: Add defines for ECC key lengths 2021-08-09 16:45:57 +02:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: Add missing header that defines BT_ISO_SDU_BUF_SIZE 2021-11-04 09:52:48 +01:00
hfp_hf.c
hfp_internal.h
id.c Bluetooth: host: Access local IRKs consistently 2021-09-29 10:44:38 -04:00
id.h
iso_internal.h Bluetooth: ISO: Add CIG state machine 2021-11-15 14:39:59 -05:00
iso.c Bluetooth: ISO: Update loop variables types in iso.c 2021-11-15 14:39:59 -05:00
Kconfig kconfig: bluetooth: experimental settings now uses select EXPERIMENTAL 2021-10-22 13:59:21 +02:00
Kconfig.gatt kconfig: bluetooth: experimental settings now uses select EXPERIMENTAL 2021-10-22 13:59:21 +02:00
Kconfig.l2cap Bluetooth: Mesh: Modularizing the proxy 2021-07-09 17:56:16 +03:00
keys_br.c
keys.c Bluetooth: host: Verify valid local identity loaded from settings 2021-09-29 10:44:38 -04:00
keys.h Bluetooth: host: Align with terms in v5.3 spec 2021-09-20 20:01:32 +02:00
l2cap_br.c toolchain: migrate iterable sections calls to the external API 2021-08-12 17:47:04 -04:00
l2cap_internal.h Bluetooth: Disconnect L2CAP channel if peer sent too much data 2021-11-09 19:58:42 -05:00
l2cap.c kernel: atomics: update print specifiers for atomic_t 2021-11-15 09:59:01 -05:00
monitor.c bluetooth: monitor: Add support for logging v2 2021-11-03 16:00:17 +01:00
monitor.h
rfcomm_internal.h
rfcomm.c bluetooth: rfcomm: fix the coverity 203443 memory corruptions 2021-06-24 11:57:33 +03:00
scan.c Bluetooth: host: Add handling of failures in per sync established evt 2021-11-18 17:12:22 +02:00
scan.h Bluetoot: host: Make get_per_adv_sync to be global function 2021-05-06 16:27:16 +02:00
sdp_internal.h
sdp.c Bluetooth: SDP: Check len is not zero before accessing data pointer 2021-09-27 16:34:22 +02:00
settings.c Bluetooth: host: check return value of bt_rand when creating identities 2021-09-27 17:14:20 +02:00
settings.h
smp_null.c
smp.c bluetooth: host: Add support for SMP error code 0x0f 2021-11-01 21:48:52 -04:00
smp.h bluetooth: host: Add support for SMP error code 0x0f 2021-11-01 21:48:52 -04:00
ssp.c
ssp.h
testing.c
testing.h
uuid.c Bluetooth: uuid: Use BT_UUID_SIZE_ macros for bt_uuid_create 2021-07-19 18:52:41 +02:00