Skip to content

Commit

Permalink
Bluetooth: host: Document privacy-disabled directed advertising reports
Browse files Browse the repository at this point in the history
Document why a privacy-disabled scanner will not notify about directed
advertising reports. This is the default behaviour of the
privacy-disabled scanner. In order to receive the reports the option
BT_SCAN_WITH_IDENTITY must be enabled.

Signed-off-by: Joakim Andersson <[email protected]>
  • Loading branch information
joerchan authored and jhedberg committed Feb 3, 2020
1 parent 56bbc4e commit 499b4e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions include/bluetooth/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,13 @@ struct bt_le_scan_cb {
* Start LE scanning with given parameters and provide results through
* the specified callback.
*
* Note: The LE scanner by default does not use the Identity Address of the
* local device when :option:`CONFIG_BT_PRIVACY` is disabled. This is to
* prevent the active scanner from disclosing the identity information
* when requesting additional information from advertisers.
* In order to enable directed advertiser reports then
* :option:`CONFIG_BT_SCAN_WITH_IDENTITY` must be enabled.
*
* @param param Scan parameters.
* @param cb Callback to notify scan results. May be NULL if callback
* registration through @ref bt_le_scan_cb_register is preferred.
Expand Down
6 changes: 4 additions & 2 deletions subsys/bluetooth/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,10 @@ config BT_SCAN_WITH_IDENTITY
Enable this if you want to perform active scanning using the local
identity address as the scanner address. By default the stack will
always use a non-resolvable private address (NRPA) in order to avoid
disclosing local identity information. However, if the use case
requires disclosing it then enable this option.
disclosing local identity information. By not scanning with the
identity address the scanner will receive directed advertise reports
for for the local identity. If this use case is required, then enable
this option.

config BT_DEVICE_NAME_DYNAMIC
bool "Allow to set Bluetooth device name on runtime"
Expand Down

0 comments on commit 499b4e0

Please sign in to comment.