Skip to content

Conversation

@olivier-le-sage
Copy link
Contributor

No description provided.

…egacy scan+adv

In 25c993e a new case was introduced
where own_addr_type is not set by bt_id_set_scan_own_addr properly.

This led to issues for users where increasing their zephyr version
led to failures to start scanning after advertising in the case where
CONFIG_BT_SCAN_WITH_IDENTITY=n and legacy advertising commands are used.

Signed-off-by: Olivier Lesage <[email protected]>
(cherry picked from commit 43223a1)
…bled

It represents whether scanning was disabled as part of this flow.

Signed-off-by: Olivier Lesage <[email protected]>
(cherry picked from commit 11782db)
…with identity

Attempting this would fail (assuming the controller is implemented
correctly) because when using legacy commands it is not allowed to
change the device address while scanning.

It also did not make sense. If we have configured the scanner to use
the identity address as own_addr, because the advertiser and scanner
addresses are shared when using legacy commands, setting the adv NRPA
here would overwrite the identity address used by the scanner, which
I assume is not the intention.

Signed-off-by: Olivier Lesage <[email protected]>
(cherry picked from commit ef7ede6)
…pdating own_addr

It wasn't taken into account that bt_le_scan_set_enable()
has a return value. It's not likely that the controller
rejects the command when BT_DEV_SCANNING is set, however.

Signed-off-by: Olivier Lesage <[email protected]>
(cherry picked from commit aa4e6ac)
@olivier-le-sage olivier-le-sage force-pushed the cherry-pick-host-privacy-fix branch from d8b4459 to d6e86f4 Compare July 10, 2025 10:31
@olivier-le-sage olivier-le-sage marked this pull request as ready for review July 10, 2025 11:54
@olivier-le-sage olivier-le-sage changed the title Cherry pick host privacy fix Cherry pick host address fix Jul 10, 2025
@olivier-le-sage olivier-le-sage requested a review from Thalley July 11, 2025 08:05
@rlubos rlubos merged commit 8ea7c45 into nrfconnect:main Jul 11, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants