Bluetooth: Advertising resume functionality is broken #72567
Labels
area: Bluetooth Host
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
The Bluetooth specification says that (when using legacy advertising) it is forbidden to update the random address whilst another role is running.
That means we can't start a scanner while an advertiser is running or the opposite.
With the resume feature, it is very probable that the host attempts to re-start advertising while the scanner is already running.
Proposed change
We should deprecate that feature.
It has also been the source of many race-condition bugs (finding PRs left as exercise to the reader).
With the addition of the
recycled
callback, that feature is now implementable by the application itself.zephyr/include/zephyr/bluetooth/conn.h
Lines 1003 to 1016 in e32c2ee
Additional context
The text was updated successfully, but these errors were encountered: