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
[PW_SID:655292] [BlueZ] adapter: Fix advertising monitor on Linux 5.12-5.17 #1332
Conversation
This patch adds workflow files for ci: [schedule_work.yml] - runs every 30 mins. - sync repo with upstream repo and rebase workflow branch to tip of master. - creates PR after reading patches from patchwork.kernel.org [ci.yml] - Tests the following checks: - checkpatch - gitlint - make - make check [code_scan.yml] - Static code checker: Coverity and Clang - Coverity: Submit the result to the coverity website - Clang Code Scan: Send email with result file to the internal team To simplify the history, new change will amend to this patch without creating new patch.
The existing code assumes that, if a device supports advertising monitor offload, DEVICE_FOUND events can be ignored since the kernel will send ADV_MONITOR_DEVICE_FOUND events instead. Unfortunately, these new events were added in 5.18, but offload was added in 5.12. This patch adds a check on the MGMT API version so we can process the older DEVICE_FOUND events when the new events are not supported. Fixes: bluez#357
CheckPatch |
GitLint |
Prep - Setup ELL |
Build - Prep |
Build - Configure |
Build - Make |
Make Check |
Make Check w/Valgrind |
Make Distcheck |
Build w/ext ELL - Configure |
Build w/ext ELL - Make |
Incremental Build with patches |
4c8fd62
to
3b3bce0
Compare
edaba7f
to
581cb98
Compare
The existing code assumes that, if a device supports advertising monitor
offload, DEVICE_FOUND events can be ignored since the kernel will send
ADV_MONITOR_DEVICE_FOUND events instead. Unfortunately, these new events
were added in 5.18, but offload was added in 5.12. This patch adds a
check on the MGMT API version so we can process the older DEVICE_FOUND
events when the new events are not supported.
Fixes: bluez#357
src/adapter.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)