* [PATCH 1/2] Bluetooth: Fix handling of experimental feature for quality reports
@ 2021-09-28 10:10 Marcel Holtmann
2021-09-28 16:07 ` [1/2] " bluez.test.bot
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2021-09-28 10:10 UTC (permalink / raw)
To: linux-bluetooth
The existence of the experimental feature identifiy is the indication
that it is supported or not. No extra flag needed and the initial flag
should define if a feature is enabled or not. This is actually defined
in the management API definition.
Fixes: ae7d925b5c043 ("Bluetooth: Support the quality report events")
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
net/bluetooth/mgmt.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index a6aeefd2c14f..84336be4d00d 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -3863,19 +3863,12 @@ static int read_exp_features_info(struct sock *sk, struct hci_dev *hdev,
idx++;
}
- if (hdev) {
- if (hdev->set_quality_report) {
- /* BIT(0): indicating if set_quality_report is
- * supported by controller.
- */
+ if (hdev && hdev->set_quality_report) {
+ if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT))
flags = BIT(0);
-
- /* BIT(1): indicating if the feature is enabled. */
- if (hci_dev_test_flag(hdev, HCI_QUALITY_REPORT))
- flags |= BIT(1);
- } else {
+ else
flags = 0;
- }
+
memcpy(rp->features[idx].uuid, quality_report_uuid, 16);
rp->features[idx].flags = cpu_to_le32(flags);
idx++;
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [1/2] Bluetooth: Fix handling of experimental feature for quality reports
2021-09-28 10:10 [PATCH 1/2] Bluetooth: Fix handling of experimental feature for quality reports Marcel Holtmann
@ 2021-09-28 16:07 ` bluez.test.bot
2021-09-28 21:42 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 3+ messages in thread
From: bluez.test.bot @ 2021-09-28 16:07 UTC (permalink / raw)
To: linux-bluetooth, marcel
[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]
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=554141
---Test result---
Test Summary:
CheckPatch PASS 2.98 seconds
GitLint PASS 1.76 seconds
BuildKernel PASS 565.64 seconds
TestRunner: Setup PASS 418.20 seconds
TestRunner: l2cap-tester PASS 9.41 seconds
TestRunner: bnep-tester PASS 5.05 seconds
TestRunner: mgmt-tester FAIL 81.04 seconds
TestRunner: rfcomm-tester PASS 6.25 seconds
TestRunner: sco-tester PASS 6.48 seconds
TestRunner: smp-tester PASS 6.54 seconds
TestRunner: userchan-tester PASS 5.32 seconds
Details
##############################
Test: TestRunner: mgmt-tester - FAIL - 81.04 seconds
Run test-runner with mgmt-tester
Total: 452, Passed: 451 (99.8%), Failed: 1, Not Run: 0
Failed Test Cases
Read Exp Feature - Success Failed 0.103 seconds
---
Regards,
Linux Bluetooth
[-- Attachment #2: l2cap-tester.log --]
[-- Type: application/octet-stream, Size: 51539 bytes --]
[-- Attachment #3: bnep-tester.log --]
[-- Type: application/octet-stream, Size: 3906 bytes --]
[-- Attachment #4: mgmt-tester.log --]
[-- Type: application/octet-stream, Size: 626722 bytes --]
[-- Attachment #5: rfcomm-tester.log --]
[-- Type: application/octet-stream, Size: 14762 bytes --]
[-- Attachment #6: sco-tester.log --]
[-- Type: application/octet-stream, Size: 13923 bytes --]
[-- Attachment #7: smp-tester.log --]
[-- Type: application/octet-stream, Size: 11830 bytes --]
[-- Attachment #8: userchan-tester.log --]
[-- Type: application/octet-stream, Size: 7740 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [1/2] Bluetooth: Fix handling of experimental feature for quality reports
2021-09-28 16:07 ` [1/2] " bluez.test.bot
@ 2021-09-28 21:42 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2021-09-28 21:42 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org; +Cc: Marcel Holtmann
Hi Marcel,
On Tue, Sep 28, 2021 at 9:09 AM <bluez.test.bot@gmail.com> wrote:
>
> 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=554141
>
> ---Test result---
>
> Test Summary:
> CheckPatch PASS 2.98 seconds
> GitLint PASS 1.76 seconds
> BuildKernel PASS 565.64 seconds
> TestRunner: Setup PASS 418.20 seconds
> TestRunner: l2cap-tester PASS 9.41 seconds
> TestRunner: bnep-tester PASS 5.05 seconds
> TestRunner: mgmt-tester FAIL 81.04 seconds
> TestRunner: rfcomm-tester PASS 6.25 seconds
> TestRunner: sco-tester PASS 6.48 seconds
> TestRunner: smp-tester PASS 6.54 seconds
> TestRunner: userchan-tester PASS 5.32 seconds
>
> Details
> ##############################
> Test: TestRunner: mgmt-tester - FAIL - 81.04 seconds
> Run test-runner with mgmt-tester
> Total: 452, Passed: 451 (99.8%), Failed: 1, Not Run: 0
>
> Failed Test Cases
> Read Exp Feature - Success Failed 0.103 seconds
>
>
>
> ---
> Regards,
> Linux Bluetooth
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-28 21:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-28 10:10 [PATCH 1/2] Bluetooth: Fix handling of experimental feature for quality reports Marcel Holtmann
2021-09-28 16:07 ` [1/2] " bluez.test.bot
2021-09-28 21:42 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox