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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 previously approved these changes Aug 28, 2024
Thalley
Thalley previously approved these changes Aug 28, 2024
Copy link
Collaborator

@Thalley Thalley left a comment

Choose a reason for hiding this comment

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

Nice work - Looking forward to getting this feature removed completely

ubieda
ubieda previously approved these changes Aug 28, 2024
theob-pro
theob-pro previously approved these changes Sep 3, 2024
@jhedberg jhedberg added the DNM This PR should not be merged (Do Not Merge) label Sep 3, 2024
@jhedberg
Copy link
Member

jhedberg commented Sep 3, 2024

Added the DNM flag for now, until we have a consensus on how to proceed with #77775 since that may have an impact on this API.

@jori-nordic
Copy link
Collaborator

@jhedberg isn't it kind of moot if the API in question is being removed?

We are determined to remove auto-resume.
We still have the deprecation period to iron out the kinks.

@jhedberg
Copy link
Member

@jhedberg isn't it kind of moot if the API in question is being removed?

We are determined to remove auto-resume. We still have the deprecation period to iron out the kinks.

You're probably right. I just wanted to pull the handbrake a little, in case it would have emerged from the discussion in the other PR that we actually don't want to deprecate/remove this feature.

@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 4 times, most recently from 28337fd to 1fa9f59 Compare October 3, 2024 10:42
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

Bluetooth: Advertising resume functionality is broken
8 participants