Bluetooth: hci_core: Fix {cis,bis}_capable not checking if LE is enabled
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: hci_core: Fix {cis,bis}_capable not checking if LE is enabled
From: Luiz Augusto von Dentz <[email protected]>
{cis,bis}_capable shall check that LE is enabled otherwise its MGMT settings would still be marked as supported when they shouldn't.
--- include/net/bluetooth/hci_core.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
include/net/bluetooth/hci_core.h +10 -4
@@ -1984,11 +1984,17 @@ void hci_conn_del_sysfs(struct hci_conn *conn);#define cis_capable (dev) \ (cis_central_capable(dev) || cis_peripheral_capable(dev))#define cis_central_capable (dev) \ - ((dev)->le_features[3] & HCI_LE_CIS_CENTRAL) + (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && \ + (dev)->le_features[3] & HCI_LE_CIS_CENTRAL)#define cis_peripheral_capable (dev) \ - ((dev)->le_features[3] & HCI_LE_CIS_PERIPHERAL) -#define bis_capable (dev) ((dev)->le_features[3] & HCI_LE_ISO_BROADCASTER) -#define sync_recv_capable (dev) ((dev)->le_features[3] & HCI_LE_ISO_SYNC_RECEIVER) + (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && \ + (dev)->le_features[3] & HCI_LE_CIS_PERIPHERAL) +#define bis_capable (dev) \ + (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && \ + (dev)->le_features[3] & HCI_LE_ISO_BROADCASTER) +#define sync_recv_capable (dev) \ + (hci_dev_test_flag(hdev, HCI_LE_ENABLED) && \ + (dev)->le_features[3] & HCI_LE_ISO_SYNC_RECEIVER)#define mws_transport_config_capable (dev) (((dev)->commands[30] & 0x08) && \ (!hci_test_quirk((dev), HCI_QUIRK_BROKEN_MWS_TRANSPORT_CONFIG)))
Signature · 1 line
2.50.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=988188
---Test result---
Test Summary:
CheckPatch PENDING 0.37 seconds GitLint PENDING 0.26 seconds SubjectPrefix PASS 0.13 seconds BuildKernel PASS 24.05 seconds CheckAllWarning PASS 26.91 seconds CheckSparse PASS 29.90 seconds BuildKernel32 PASS 24.11 seconds TestRunnerSetup PASS 476.35 seconds TestRunner_l2cap-tester PASS 24.78 seconds TestRunner_iso-tester PASS 35.49 seconds TestRunner_bnep-tester PASS 7.49 seconds TestRunner_mgmt-tester PASS 125.01 seconds TestRunner_rfcomm-tester PASS 9.29 seconds TestRunner_sco-tester PASS 14.71 seconds TestRunner_ioctl-tester PASS 10.06 seconds TestRunner_mesh-tester FAIL 11.52 seconds TestRunner_smp-tester PASS 8.55 seconds TestRunner_userchan-tester PASS 6.24 seconds IncrementalBuild PENDING 0.69 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.156 seconds Mesh - Send cancel - 2 Timed out 1.997 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth