* [PATCH BlueZ] advertising: Do not set timer if DiscoverableTimeout=0
@ 2024-02-13 13:12 Arkadiusz Bokowy
2024-02-13 14:10 ` [BlueZ] " bluez.test.bot
2024-02-15 22:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Arkadiusz Bokowy @ 2024-02-13 13:12 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Arkadiusz Bokowy
According to org.bluez.LEAdvertisement.rst documentation, the value of
zero should disable timeout and keep device in the discoverable mode
forever.
---
src/advertising.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/advertising.c b/src/advertising.c
index 2c9a5a443..c036065c4 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1065,7 +1065,9 @@ static bool parse_discoverable_timeout(DBusMessageIter *iter,
if (client->disc_to_id)
timeout_remove(client->disc_to_id);
- client->disc_to_id = timeout_add_seconds(client->discoverable_to,
+ if (client->discoverable_to > 0)
+ client->disc_to_id = timeout_add_seconds(
+ client->discoverable_to,
client_discoverable_timeout,
client, NULL);
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] advertising: Do not set timer if DiscoverableTimeout=0
2024-02-13 13:12 [PATCH BlueZ] advertising: Do not set timer if DiscoverableTimeout=0 Arkadiusz Bokowy
@ 2024-02-13 14:10 ` bluez.test.bot
2024-02-15 22:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-02-13 14:10 UTC (permalink / raw)
To: linux-bluetooth, arkadiusz.bokowy
[-- Attachment #1: Type: text/plain, Size: 946 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=825610
---Test result---
Test Summary:
CheckPatch PASS 0.43 seconds
GitLint PASS 0.31 seconds
BuildEll PASS 24.19 seconds
BluezMake PASS 737.22 seconds
MakeCheck PASS 11.86 seconds
MakeDistcheck PASS 165.19 seconds
CheckValgrind PASS 227.24 seconds
CheckSmatch PASS 328.63 seconds
bluezmakeextell PASS 107.30 seconds
IncrementalBuild PASS 698.83 seconds
ScanBuild PASS 974.22 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] advertising: Do not set timer if DiscoverableTimeout=0
2024-02-13 13:12 [PATCH BlueZ] advertising: Do not set timer if DiscoverableTimeout=0 Arkadiusz Bokowy
2024-02-13 14:10 ` [BlueZ] " bluez.test.bot
@ 2024-02-15 22:30 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-02-15 22:30 UTC (permalink / raw)
To: Arkadiusz Bokowy; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 13 Feb 2024 14:12:05 +0100 you wrote:
> According to org.bluez.LEAdvertisement.rst documentation, the value of
> zero should disable timeout and keep device in the discoverable mode
> forever.
> ---
> src/advertising.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Here is the summary with links:
- [BlueZ] advertising: Do not set timer if DiscoverableTimeout=0
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c58a4d9f7880
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] 3+ messages in thread
end of thread, other threads:[~2024-02-15 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 13:12 [PATCH BlueZ] advertising: Do not set timer if DiscoverableTimeout=0 Arkadiusz Bokowy
2024-02-13 14:10 ` [BlueZ] " bluez.test.bot
2024-02-15 22:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).