This adds support for loading local IRK key when adapter is configured. In case IRK is not present new key is generated and stored. In case of errors privacy is explicitly disabled. We ensure that we memset IRK to zero before disabling privacy. IRK is stored in %s/identity file. Privacy setting is configured globally in main.conf. In the future we may add per device configuration in %s/settings.
206bee1 core/adapter: Add support for enabling privacy
doc/settings-storage.txt | 12 +++++
src/adapter.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++
src/hcid.h | 2 +
src/main.c | 21 ++++++++
src/main.conf | 7 +++
5 files changed, 164 insertions(+)
Upstream: git.kernel.org