Skip to content

Commit

Permalink
Advertising: Emit features property update
Browse files Browse the repository at this point in the history
Advertising manager has some properties that relies on kernel
information. Once we received the information from kernel, we should
emit property update.
  • Loading branch information
howardchungg authored and Vudentz committed Mar 25, 2024
1 parent 7454502 commit 150bd6e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/advertising.c
Expand Up @@ -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,
Expand Down

0 comments on commit 150bd6e

Please sign in to comment.