zephyr/include/bluetooth
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
..
mesh Bluetooth: Mesh: Encapsulate feature config 2020-11-09 11:23:34 +02:00
services
a2dp-codec.h
a2dp.h
addr.h
att.h
avdtp.h
bluetooth.h Bluetooth: host: Change directed advertising to privacy-enabled peer 2020-11-11 13:22:02 +01:00
buf.h
conn.h Bluetooth: host: Document peripheral bt_conn_le_conn_update behavior 2020-10-26 16:16:35 +02:00
controller.h
crypto.h
gap.h
gatt.h Bluetooth: add destroy callback to indication 2020-11-10 11:21:46 +01:00
hci_err.h
hci_raw.h
hci_vs.h
hci.h
hfp_hf.h
iso.h
l2cap.h
mesh.h Bluetooth: Mesh: Encapsulate feature config 2020-11-09 11:23:34 +02:00
rfcomm.h
sdp.h
testing.h
uuid.h Bluetooth: UUID: Document endianness in UUID helper macros 2020-10-22 18:00:45 +03:00