Skip to content

Conversation

@anhmolt
Copy link
Contributor

@anhmolt anhmolt commented Dec 9, 2025

  • Fix allow list advertising when directed advertising is not enabled in Kconfig.
  • Fix the directed advertising set configuration

With allow-list enabled, and directed and/or directed high duty
advertising disabled in Kconfig, the allow-list for use in fast and
slow advertising did not take effect when advertising was started with
mode directed or directed high duty.

This made it possible for non-paired/non-allow-listed devices to
connect after a paired/allow-listed device had disconnected and
advertising had been automatically restarted in the directed high
duty mode.

This fixes two internal checks in the ble_adv library that was
the source of the issue. These checks will now correctly
return the "capabilities" of the advertising mode to be
started so that the configuration will be correct.

Signed-off-by: Andreas Moltumyr <[email protected]>
@anhmolt anhmolt requested review from a team as code owners December 9, 2025 17:44
@github-actions github-actions bot added the doc-required PR must not be merged without tech writer approval. label Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

You can find the documentation preview for this PR here.

@anhmolt anhmolt added the bug Something isn't working label Dec 10, 2025
When configuring the advertisement set for direct advertisement
with sd_ble_gap_adv_set_configure(), NULL must be passed for the
advertising data argument because advertising data is not supported
in this mode. The sd_ble_gap_adv_set_configure() would return
NRF_ERROR_INVALID_PARAM in this case.

When doing directed advertisement, the address of the peer to direct
the advertisement towards needed to be specified in the advertisement
parameters when calling sd_ble_gap_adv_set_configure(). Set the address
in the advertisement parameters to the address supplied by the
application calling the ble_adv_peer_addr_reply() function in response
to the BLE_ADV_EVT_PEER_ADDR_REQUEST event.

Signed-off-by: Andreas Moltumyr <[email protected]>
@anhmolt anhmolt force-pushed the fix-advertising-with-allow-list branch from 1eedd9c to 5b20a6e Compare December 10, 2025 16:00
@anhmolt anhmolt requested a review from a team as a code owner December 10, 2025 16:00
@anhmolt anhmolt requested a review from peknis December 10, 2025 16:01
@anhmolt
Copy link
Contributor Author

anhmolt commented Dec 10, 2025

Added another commit because of another bug. @peknis, please have a look at the changelog again. I have added a second entry.

@eivindj-nordic eivindj-nordic merged commit 1110e52 into nrfconnect:main Dec 11, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working doc-required PR must not be merged without tech writer approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants