Bluetooth: host: Refactor out scan roles from hci_core to scan

Refactor out the scan roles handling from hci_core.c to its own source
file in scan.c.
Scan roles consists of regular scanning and synchronization to
periodic advertiser.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-03-08 14:30:19 +01:00 committed by Johan Hedberg
commit be6797ed64
6 changed files with 1608 additions and 1561 deletions

View file

@ -36,6 +36,10 @@ if(CONFIG_BT_HCI_HOST)
hci_common.c
id.c
)
zephyr_library_sources_ifdef(
CONFIG_BT_OBSERVER
scan.c
)
zephyr_library_sources_ifdef(
CONFIG_BT_HOST_CRYPTO
crypto.c