aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYun-Hao Chung <howardchung@google.com>2024-03-25 18:10:04 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-03-25 15:27:12 -0400
commit150bd6e81b3578290d71197b6fde4d26e06ea6e3 (patch)
tree2f8fa9f3bc4a1a0286f15b1e5cae3902ccf64964
parent74545026520a35c48349796246b6423285e10b0a (diff)
Advertising: Emit features property update
Advertising manager has some properties that relies on kernel information. Once we received the information from kernel, we should emit property update.
-rw-r--r--src/advertising.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/advertising.c b/src/advertising.c
index 0131fc1c79..7f55a20e37 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,