zephyr/subsys/bluetooth/host/scan.h
Piotr Pryga 2125a6494c Bluetooth: Host: add missing de-init of periodic sync pool
While execution of bt_disable there is missing de-initialization
of per_adv_sync_pool. If there was a sync in progress, (flags set
to BT_PER_ADV_SYNC_SYNCING) before bt_disable, then when the stack
is re-enabled by bt_enable new sync create fails.

The commit fixes the issue by new function that clears flags for
all per_adv_sync_pool entries. The function is executed by bt_disable.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-07-13 16:13:57 +02:00

17 lines
367 B
C

/*
* Copyright (c) 2017-2021 Nordic Semiconductor ASA
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
void bt_scan_reset(void);
bool bt_id_scan_random_addr_check(void);
int bt_le_scan_set_enable(uint8_t enable);
struct bt_le_per_adv_sync *bt_hci_get_per_adv_sync(uint16_t handle);
void bt_periodic_sync_disable(void);