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

[nrf fromtree] Bluetooth: Host: Log when connecting while scanning ma… #2305

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

rugeGerritsen
Copy link
Contributor

…y give bad params

The API documentation already states that the controller may require the scan interval and window used for scanning and connection establishment to be equal to obtain the best performance.

This commit prints out a warning when this is not the case. The code size is unchanged when CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL=n.

This makes application developers aware that using the parameters BT_LE_SCAN_ACTIVE_CONTINUOUS with BT_CONN_LE_CREATE_CONN may not give the best performance.

Signed-off-by: Rubin Gerritsen [email protected]
(cherry picked from commit 56a22cb)

…y give bad params

The API documentation already states that the controller may require
the scan interval and window used for scanning and connection
establishment to be equal to obtain the best performance.

This commit prints out a warning when this is not the case. The code
size is unchanged when `CONFIG_BT_SCAN_AND_INITIATE_IN_PARALLEL=n`.

This makes application developers aware that using the parameters
`BT_LE_SCAN_ACTIVE_CONTINUOUS` with `BT_CONN_LE_CREATE_CONN` may not
give the best performance.

Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit 56a22cbccb90a3a56825d07f23ac2d5359fa9289)
@rlubos rlubos merged commit 5f7ad5b into nrfconnect:main Nov 28, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants