mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 07:35:26 +00:00
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> |
||
---|---|---|
.. | ||
bluetooth | ||
canbus | ||
console | ||
cpp | ||
debug | ||
dfu | ||
disk | ||
emul | ||
fb | ||
fs | ||
jwt | ||
logging | ||
lorawan | ||
mgmt | ||
net | ||
power | ||
random | ||
settings | ||
shell | ||
stats | ||
storage | ||
testsuite | ||
timing | ||
tracing | ||
usb | ||
CMakeLists.txt | ||
Kconfig |