zephyr/subsys
Joakim Andersson bd7a2fc395 Bluetooth: host: Change directed advertising to privacy-enabled peer
Change the advertising option that controls if the directed advertiser
will use an RPA or the identity address of the peer for the initiator
address.
This option currently has two issues:
 - It behaves differently if the privacy feature has been enabled,
   which can be confusing for application to use.
 - It cannot start a directed advertiser towards a peer that is not
   privacy-enabled and has distributed an IRK.

This commit includes the following changes:
 - When privacy has been enabled in order to advertise towards a
   privacy-enabled peer the BT_LE_ADV_OPT_DIR_ADDR_RPA option must now
   be set (same as when privacy has been disabled).
 - It is now possible to start a directed advertiser using the identity
   address of the peer when privacy-enabled.
 - When privacy has been enabled the advertising option combination
   of using the local identity address and an RPA as the initiator
   address is now disallowed and will return an error code.
   This is done because this combination did not actually work and would
   have used the identity address of the peer instead.
 - If the controller does not support controller-based privacy then
   using the option BT_LE_ADV_OPT_DIR_ADDR_RPA will return ENOTSUP
   because this behavior cannot be done with host-based privacy.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2020-11-11 13:22:02 +01:00
..
bluetooth Bluetooth: host: Change directed advertising to privacy-enabled peer 2020-11-11 13:22:02 +01:00
canbus
console
cpp
debug
dfu storage/flash_map: Added function for get erased byte value 2020-10-30 15:53:38 +01:00
disk disk: Fix nxp usdhc driver optional gpio properties 2020-11-03 10:35:49 -06:00
emul emul: spi: bmi160: Add support for I2C 2020-10-27 16:41:30 +01:00
fb
fs tests/fs/fatfs: Add tests for FS_MOUNT_FLAG_* 2020-11-06 13:10:13 -05:00
jwt
logging logging: fix cmd_log_self_disable argc checker 2020-11-06 13:16:39 -05:00
lorawan lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00
mgmt mgmt: mcumgr: add configuration option to enable shell management 2020-11-11 13:17:02 +01:00
net net: dns: enable dns service discovery for mdns responder 2020-11-09 16:15:02 -08:00
power device: treat a NULL device_pm_control as device_pm_control_nop 2020-11-10 08:38:09 -06:00
random
settings settings_fcb: initialize rc variable 2020-10-02 12:07:06 -04:00
shell shell: fix declarations for external device arrays 2020-11-04 12:14:45 +01:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage storage/flash_map: Added function for get erased byte value 2020-10-30 15:53:38 +01:00
testsuite kernel: move kernel object APIs to own header 2020-10-12 12:21:46 -04:00
timing
tracing tracing: add feature for analysing post-mortem 2020-10-07 10:10:48 -04:00
usb usb/class/usb_dfu: signal dfuMANIFEST_SYNCH after flashing is done 2020-10-30 15:58:01 +01:00
CMakeLists.txt lorawan: Add initial support for LoRaWAN 2020-10-08 12:15:38 +02:00
Kconfig lorawan: Add initial support for LoRaWAN 2020-10-08 12:15:38 +02:00