* [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout
@ 2024-01-22 16:04 Frédéric Danis
0 siblings, 0 replies; 4+ messages in thread
From: Frédéric Danis @ 2024-01-22 16:04 UTC (permalink / raw)
To: linux-bluetooth
LIMITED_DISCOVERABLE flag is not reset from Class of Device and
advertisement on limited discoverable timeout. This prevents to pass PTS
test GAP/DISC/LIMM/BV-02-C
Calling set_discoverable_sync as when the limited discovery is set
correctly update the Class of Device and advertisement.
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
---
net/bluetooth/mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 173986f3405f..c5022c90584c 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1063,7 +1063,7 @@ static void discov_off(struct work_struct *work)
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
hdev->discov_timeout = 0;
- hci_update_discoverable(hdev);
+ hci_cmd_sync_queue(hdev, set_discoverable_sync, NULL, NULL);
mgmt_new_settings(hdev);
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout
@ 2024-01-22 16:59 Frédéric Danis
2024-01-22 18:03 ` bluez.test.bot
2024-01-23 15:30 ` [PATCH] " patchwork-bot+bluetooth
0 siblings, 2 replies; 4+ messages in thread
From: Frédéric Danis @ 2024-01-22 16:59 UTC (permalink / raw)
To: linux-bluetooth
LIMITED_DISCOVERABLE flag is not reset from Class of Device and
advertisement on limited discoverable timeout. This prevents to pass PTS
test GAP/DISC/LIMM/BV-02-C
Calling set_discoverable_sync as when the limited discovery is set
correctly update the Class of Device and advertisement.
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
---
net/bluetooth/mgmt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 173986f3405f..8c4493255f92 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1045,6 +1045,8 @@ static void rpa_expired(struct work_struct *work)
hci_cmd_sync_queue(hdev, rpa_expired_sync, NULL, NULL);
}
+static int set_discoverable_sync(struct hci_dev *hdev, void *data);
+
static void discov_off(struct work_struct *work)
{
struct hci_dev *hdev = container_of(work, struct hci_dev,
@@ -1063,7 +1065,7 @@ static void discov_off(struct work_struct *work)
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
hdev->discov_timeout = 0;
- hci_update_discoverable(hdev);
+ hci_cmd_sync_queue(hdev, set_discoverable_sync, NULL, NULL);
mgmt_new_settings(hdev);
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: Bluetooth: mgmt: Fix limited discoverable off timeout
2024-01-22 16:59 [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout Frédéric Danis
@ 2024-01-22 18:03 ` bluez.test.bot
2024-01-23 15:30 ` [PATCH] " patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2024-01-22 18:03 UTC (permalink / raw)
To: linux-bluetooth, frederic.danis
[-- Attachment #1: Type: text/plain, Size: 1428 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=818709
---Test result---
Test Summary:
CheckPatch PASS 43.26 seconds
GitLint PASS 40.68 seconds
SubjectPrefix PASS 39.07 seconds
BuildKernel PASS 27.86 seconds
CheckAllWarning PASS 38.74 seconds
CheckSparse PASS 76.42 seconds
CheckSmatch PASS 119.42 seconds
BuildKernel32 PASS 40.00 seconds
TestRunnerSetup PASS 437.18 seconds
TestRunner_l2cap-tester PASS 26.76 seconds
TestRunner_iso-tester PASS 47.64 seconds
TestRunner_bnep-tester PASS 7.90 seconds
TestRunner_mgmt-tester PASS 159.16 seconds
TestRunner_rfcomm-tester PASS 10.99 seconds
TestRunner_sco-tester PASS 14.43 seconds
TestRunner_ioctl-tester PASS 12.50 seconds
TestRunner_mesh-tester PASS 10.90 seconds
TestRunner_smp-tester PASS 23.59 seconds
TestRunner_userchan-tester PASS 7.29 seconds
IncrementalBuild PASS 29.75 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout
2024-01-22 16:59 [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout Frédéric Danis
2024-01-22 18:03 ` bluez.test.bot
@ 2024-01-23 15:30 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-01-23 15:30 UTC (permalink / raw)
To: =?utf-8?b?RnLDqWTDqXJpYyBEYW5pcyA8ZnJlZGVyaWMuZGFuaXNAY29sbGFib3JhLmNvbT4=?=
Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 22 Jan 2024 17:59:55 +0100 you wrote:
> LIMITED_DISCOVERABLE flag is not reset from Class of Device and
> advertisement on limited discoverable timeout. This prevents to pass PTS
> test GAP/DISC/LIMM/BV-02-C
>
> Calling set_discoverable_sync as when the limited discovery is set
> correctly update the Class of Device and advertisement.
>
> [...]
Here is the summary with links:
- Bluetooth: mgmt: Fix limited discoverable off timeout
https://git.kernel.org/bluetooth/bluetooth-next/c/53ddef135d3a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-23 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22 16:59 [PATCH] Bluetooth: mgmt: Fix limited discoverable off timeout Frédéric Danis
2024-01-22 18:03 ` bluez.test.bot
2024-01-23 15:30 ` [PATCH] " patchwork-bot+bluetooth
-- strict thread matches above, loose matches on Subject: below --
2024-01-22 16:04 Frédéric Danis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox