All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez PATCH] Advertising: Emit features property update
@ 2024-03-25 10:10 Howard Chung
  2024-03-25 12:35 ` [Bluez] " bluez.test.bot
  2024-03-25 19:40 ` [Bluez PATCH] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Howard Chung @ 2024-03-25 10:10 UTC (permalink / raw)
  To: linux-bluetooth, Luiz Augusto von Dentz, Johan Hedberg, Marcel Holtmann
  Cc: CrosBT Upstreaming, Yun-Hao Chung, apusaka

From: Yun-Hao Chung <howardchung@google.com>

Advertising manager has some properties that relies on kernel
information. Once we received the information from kernel, we should
emit property update.

Reviewed-by: apusaka <apusaka@chromium.org>
---

 src/advertising.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/advertising.c b/src/advertising.c
index 0131fc1c7..7f55a20e3 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1890,6 +1890,19 @@ static void read_adv_features_callback(uint8_t status, uint16_t length,
 	/* Reset existing instances */
 	if (feat->num_instances)
 		remove_advertising(manager, 0);
+
+	/* Emit property update */
+	g_dbus_emit_property_changed(btd_get_dbus_connection(),
+		adapter_get_path(manager->adapter),
+		LE_ADVERTISING_MGR_IFACE, "SupportedFeatures");
+
+	g_dbus_emit_property_changed(btd_get_dbus_connection(),
+		adapter_get_path(manager->adapter),
+		LE_ADVERTISING_MGR_IFACE, "SupportedIncludes");
+
+	g_dbus_emit_property_changed(btd_get_dbus_connection(),
+		adapter_get_path(manager->adapter),
+		LE_ADVERTISING_MGR_IFACE, "SupportedSecondaryChannels");
 }
 
 static void read_controller_cap_complete(uint8_t status, uint16_t length,
-- 
2.44.0.396.g6e790dbe36-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [Bluez] Advertising: Emit features property update
  2024-03-25 10:10 [Bluez PATCH] Advertising: Emit features property update Howard Chung
@ 2024-03-25 12:35 ` bluez.test.bot
  2024-03-25 19:40 ` [Bluez PATCH] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-03-25 12:35 UTC (permalink / raw)
  To: linux-bluetooth, howardchung

[-- Attachment #1: Type: text/plain, Size: 948 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=837824

---Test result---

Test Summary:
CheckPatch                    PASS      0.40 seconds
GitLint                       PASS      0.28 seconds
BuildEll                      PASS      23.75 seconds
BluezMake                     PASS      1595.64 seconds
MakeCheck                     PASS      17.50 seconds
MakeDistcheck                 PASS      172.32 seconds
CheckValgrind                 PASS      242.30 seconds
CheckSmatch                   PASS      342.79 seconds
bluezmakeextell               PASS      116.93 seconds
IncrementalBuild              PASS      1471.63 seconds
ScanBuild                     PASS      956.57 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez PATCH] Advertising: Emit features property update
  2024-03-25 10:10 [Bluez PATCH] Advertising: Emit features property update Howard Chung
  2024-03-25 12:35 ` [Bluez] " bluez.test.bot
@ 2024-03-25 19:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-03-25 19:40 UTC (permalink / raw)
  To: Howard Chung
  Cc: linux-bluetooth, luiz.dentz, johan.hedberg, marcel,
	chromeos-bluetooth-upstreaming, apusaka

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 25 Mar 2024 18:10:04 +0800 you wrote:
> From: Yun-Hao Chung <howardchung@google.com>
> 
> Advertising manager has some properties that relies on kernel
> information. Once we received the information from kernel, we should
> emit property update.
> 
> Reviewed-by: apusaka <apusaka@chromium.org>
> 
> [...]

Here is the summary with links:
  - [Bluez] Advertising: Emit features property update
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=150bd6e81b35

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-03-25 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-25 10:10 [Bluez PATCH] Advertising: Emit features property update Howard Chung
2024-03-25 12:35 ` [Bluez] " bluez.test.bot
2024-03-25 19:40 ` [Bluez PATCH] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.