Skip to content

[PW_SID:1061995] net: bluetooth: hci_sync: fix hci_le_create_conn_sync#3342

Closed
BluezTestBot wants to merge 2 commits intoworkflowfrom
1061995
Closed

[PW_SID:1061995] net: bluetooth: hci_sync: fix hci_le_create_conn_sync#3342
BluezTestBot wants to merge 2 commits intoworkflowfrom
1061995

Conversation

@BluezTestBot
Copy link
Owner

While introducing hci_le_create_conn_sync the functionality
of hci_connect_le was ported to hci_le_create_conn_sync including
the disable of the scan before starting the connection.

When this code was run non synchronously the immediate call that was
setting the flag HCI_LE_SCAN_INTERRUPTED had an impact. Since the
completion handler for the LE_SCAN_DISABLE was not immediately called.
In the completion handler of the LE_SCAN_DISABLE event, this flag is
checked to set the state of the hdev to DISCOVERY_STOPPED.

With the synchronised approach the later setting of the
HCI_LE_SCAN_INTERRUPTED flag has not the same effect. The completion
handler would immediately fire in the LE_SCAN_DISABLE call, check for
the flag, which is then not yet set and do nothing.

To fix this issue and make the function call work as before, we move the
setting of the flag HCI_LE_SCAN_INTERRUPTED before disabling the scan.

Fixes: Bluetooth: hci_sync: Add hci_le_create_conn_sync ('8e8b92ee60de5341e9db83c11f75a525e555e2b3')
Signed-off-by: Michael Grzeschik m.grzeschik@pengutronix.de

net/bluetooth/hci_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: c107785c7e8dbabd1c18301a1c362544b5786282
change-id: 20260305-bluetooth-fixes-b2c85a0aeb2a

Best regards,

tedd-an and others added 2 commits March 2, 2026 21:39
This patch adds workflow files for ci:

[sync.yml]
 - The workflow file for scheduled work
 - Sync the repo with upstream repo and rebase the workflow branch
 - Review the patches in the patchwork and creates the PR if needed

[ci.yml]
 - The workflow file for CI tasks
 - Run CI tests when PR is created

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
While introducing hci_le_create_conn_sync the functionality
of hci_connect_le was ported to hci_le_create_conn_sync including
the disable of the scan before starting the connection.

When this code was run non synchronously the immediate call that was
setting the flag HCI_LE_SCAN_INTERRUPTED had an impact. Since the
completion handler for the LE_SCAN_DISABLE was not immediately called.
In the completion handler of the LE_SCAN_DISABLE event, this flag is
checked to set the state of the hdev to DISCOVERY_STOPPED.

With the synchronised approach the later setting of the
HCI_LE_SCAN_INTERRUPTED flag has not the same effect. The completion
handler would immediately fire in the LE_SCAN_DISABLE call, check for
the flag, which is then not yet set and do nothing.

To fix this issue and make the function call work as before, we move the
setting of the flag HCI_LE_SCAN_INTERRUPTED before disabling the scan.

Fixes: Bluetooth: hci_sync: Add hci_le_create_conn_sync ('8e8b92ee60de5341e9db83c11f75a525e555e2b3')
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

CheckPatch
Desc: Run checkpatch.pl script
Duration: 0.41 seconds
Result: PENDING

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

GitLint
Desc: Run gitlint
Duration: 0.31 seconds
Result: PENDING

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

SubjectPrefix
Desc: Check subject contains "Bluetooth" prefix
Duration: 0.41 seconds
Result: FAIL
Output:

"Bluetooth: " prefix is not specified in the subject

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

BuildKernel
Desc: Build Kernel for Bluetooth
Duration: 26.64 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

CheckAllWarning
Desc: Run linux kernel with all warning enabled
Duration: 29.31 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

CheckSparse
Desc: Run sparse tool with linux kernel
Duration: 33.22 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

BuildKernel32
Desc: Build 32bit Kernel for Bluetooth
Duration: 25.95 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunnerSetup
Desc: Setup kernel and bluez for test-runner
Duration: 565.68 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_l2cap-tester
Desc: Run l2cap-tester with test-runner
Duration: 29.13 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_iso-tester
Desc: Run iso-tester with test-runner
Duration: 80.05 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_bnep-tester
Desc: Run bnep-tester with test-runner
Duration: 6.92 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_mgmt-tester
Desc: Run mgmt-tester with test-runner
Duration: 117.73 seconds
Result: FAIL
Output:

Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.116 seconds

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_rfcomm-tester
Desc: Run rfcomm-tester with test-runner
Duration: 9.52 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_sco-tester
Desc: Run sco-tester with test-runner
Duration: 14.71 seconds
Result: FAIL
Output:

WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_ioctl-tester
Desc: Run ioctl-tester with test-runner
Duration: 10.29 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_mesh-tester
Desc: Run mesh-tester with test-runner
Duration: 12.46 seconds
Result: FAIL
Output:

Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    2.763 seconds
Mesh - Send cancel - 2                               Timed out    1.993 seconds

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_smp-tester
Desc: Run smp-tester with test-runner
Duration: 8.86 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

TestRunner_userchan-tester
Desc: Run userchan-tester with test-runner
Duration: 6.72 seconds
Result: PASS

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 0.85 seconds
Result: PENDING

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.

3 participants