-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bluetooth: Host: remove unused bt_le_set_auto_conn() #81233
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: Host: remove unused bt_le_set_auto_conn() #81233
Conversation
bt_le_set_auto_conn() doesn't work as expected. When it is used notify_disconnected() is not called, also reconnection doesn't work. I didn't find easy way to fix it and I think it was broken for a long time. Instead of using this function, a user application can implement reconnecting to the disconnected device by starting scanner again and connecting manually Signed-off-by: Ivan Iushkov <[email protected]>
cvinayak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You cannot directly remove a public API, it needs be deprecated first. https://docs.zephyrproject.org/latest/develop/api/api_lifecycle.html#api-lifecycle
Thank you, it is a good point.
I guess, this API can be treated as unstable since there are no tests or samples using it, and it is practically not working |
Stable/unstable here refers to the API and not the implementation. Unless specified as unstable or experimental, APIs are considered stable. It's described in more detail at https://docs.zephyrproject.org/latest/develop/api/api_lifecycle.html |
|
Sounds like we should anyways deprecate the API now. There is no point in keeping it if it doesn't work. |
The alternative is of course also to fix it :) I have no idea how many uses it, but ideally we would hear from users if we follow the deprecation procedure. If I understand correctly, this is the functionality used to use the filter accept list during connection. Looks like this is the only way for applications to use the FAL, so if we remove this function, we should offer the functionality in another way. |
but the implementation of this function is compiled only when CONFIG_BT_FILTER_ACCEPT_LIST is disabled so it should not affect FAL users |
Sorry yes, I had confused it with |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
bt_le_set_auto_conn() doesn't work as expected.
When it is used notify_disconnected() is not called, also reconnection doesn't work.
I didn't find easy way to fix it and I think it was broken for a long time.
Instead of using this function, a user application can implement reconnecting to the disconnected device by starting scanner again and connecting manually
fixes #81230