Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: Deprecate adv auto-resume #73395

Merged

Conversation

alwa-nordic
Copy link
Collaborator

The host-based adv auto-resume function has both a problematic implementation and disagreement in the community around how it should behave. See the issue linked resolved below for details.

This patch makes the deprecation visible to the user. The user will be better served by a auto-resume tailored their applications use case, based on more primitive host API like conn_cb.recycled, which has obvious behavior that is unlikely to change.

Resolves: #72567

@alwa-nordic
Copy link
Collaborator Author

Last push fixes compliance check:

EMBEDDED_FUNCTION_NAME: Prefer using '"%s...", __func__' to using 'bt_le_adv_start', this function's name, in a string

@zephyrbot zephyrbot added the platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim label May 28, 2024
@zephyrbot zephyrbot requested a review from aescolar May 28, 2024 14:16
@alwa-nordic
Copy link
Collaborator Author

Latest push removes the adv/resume2 test, which was failing this PR because of the deprecation warning.

@alwa-nordic alwa-nordic requested a review from Thalley May 28, 2024 14:25
@alwa-nordic alwa-nordic added the Bluetooth Review Discussion in the Bluetooth WG meeting required label May 28, 2024
jori-nordic
jori-nordic previously approved these changes May 29, 2024
Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bluetooth WG meeting:

  • Agreement to dreprecate BT_LE_ADV_OPT_CONNECTABLE and BT_LE_ADV_OPT_ONE_TIME and introduce a new BT_LE_ADV_OPT_CONN which combines the two deprecated options into a single one

Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an entry in the migration guide

@alwa-nordic alwa-nordic marked this pull request as draft June 4, 2024 06:48
@jori-nordic jori-nordic marked this pull request as ready for review June 12, 2024 12:32
@zephyrbot zephyrbot added the area: Samples Samples label Jun 12, 2024
@jhedberg jhedberg removed the DNM This PR should not be merged (Do Not Merge) label Sep 10, 2024
@alwa-nordic
Copy link
Collaborator Author

Pushed rebase. No conflicts.

Thalley
Thalley previously approved these changes Sep 13, 2024
jori-nordic
jori-nordic previously approved these changes Sep 13, 2024
@alwa-nordic alwa-nordic force-pushed the rm-adv-resume/add-wrn branch 2 times, most recently from efd8422 to 846f1f6 Compare September 13, 2024 11:46
@alwa-nordic alwa-nordic force-pushed the rm-adv-resume/add-wrn branch 5 times, most recently from 1fa9f59 to 8c31990 Compare October 3, 2024 12:28
The host-based adv auto-resume function has both a problematic
implementation and disagreement in the community around how it should
behave. See the issue linked resolved below for details.

This patch makes the deprecation visible to the user. The user will be
better served by a auto-resume tailored their applications use case,
based on more primitive host API like `conn_cb.recycled`, which has
obvious behavior that is unlikely to change.

Resolves: zephyrproject-rtos#72567

Signed-off-by: Aleksander Wasaznik <[email protected]>
@carlescufi carlescufi assigned alwa-nordic and unassigned jhedberg Oct 8, 2024
@carlescufi
Copy link
Member

Changed the asignee to @alwa-nordic since @jhedberg is currently away and had previously already approved this PR.

@carlescufi carlescufi merged commit 8cfad44 into zephyrproject-rtos:main Oct 8, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Bluetooth: Advertising resume functionality is broken
8 participants