From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v2 2/2] advertising: Promote experimental properties to stable
Date: Fri, 28 Jun 2024 12:47:01 -0400 [thread overview]
Message-ID: <20240628164701.626148-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20240628164701.626148-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This promotes experimental properties to stable since they have been in
use for quite a while without any changes.
---
src/advertising.c | 21 +++------------------
1 file changed, 3 insertions(+), 18 deletions(-)
diff --git a/src/advertising.c b/src/advertising.c
index 5d373e0884b1..dce79bbb51c0 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -1129,10 +1129,6 @@ static bool parse_min_interval(DBusMessageIter *iter,
{
uint32_t min_interval_ms;
- /* Only consider this property if experimental setting is applied */
- if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
- return true;
-
if (!iter) {
client->min_interval = 0;
return false;
@@ -1162,10 +1158,6 @@ static bool parse_max_interval(DBusMessageIter *iter,
{
uint32_t max_interval_ms;
- /* Only consider this property if experimental setting is applied */
- if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
- return true;
-
if (!iter) {
client->max_interval = 0;
return false;
@@ -1195,10 +1187,6 @@ static bool parse_tx_power(DBusMessageIter *iter,
{
int16_t val;
- /* Only consider this property if experimental setting is applied */
- if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL))
- return true;
-
if (!iter) {
client->tx_power = ADV_TX_POWER_NO_PREFERENCE;
return false;
@@ -1841,10 +1829,8 @@ static const GDBusPropertyTable properties[] = {
{ "SupportedIncludes", "as", get_supported_includes, NULL, NULL },
{ "SupportedSecondaryChannels", "as", get_supported_secondary, NULL,
secondary_exists },
- { "SupportedFeatures", "as", get_supported_features, NULL, NULL,
- G_DBUS_PROPERTY_FLAG_EXPERIMENTAL},
- { "SupportedCapabilities", "a{sv}", get_supported_cap, NULL, NULL,
- G_DBUS_PROPERTY_FLAG_EXPERIMENTAL},
+ { "SupportedFeatures", "as", get_supported_features, NULL, NULL },
+ { "SupportedCapabilities", "a{sv}", get_supported_cap, NULL, NULL },
{ }
};
@@ -1998,8 +1984,7 @@ static struct btd_adv_manager *manager_create(struct btd_adapter *adapter,
/* Query controller capabilities. This will be used to display valid
* advertising tx power range to the client.
*/
- if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL &&
- btd_has_kernel_features(KERNEL_HAS_CONTROLLER_CAP_CMD))
+ if (btd_has_kernel_features(KERNEL_HAS_CONTROLLER_CAP_CMD))
mgmt_send(manager->mgmt, MGMT_OP_READ_CONTROLLER_CAP,
manager->mgmt_index, 0, NULL,
read_controller_cap_complete, manager, NULL);
--
2.45.2
next prev parent reply other threads:[~2024-06-28 16:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 16:47 [PATCH BlueZ v2 1/2] org.bluez.LEAdvertisement: Promote experimental properties to stable Luiz Augusto von Dentz
2024-06-28 16:47 ` Luiz Augusto von Dentz [this message]
2024-06-28 19:16 ` [BlueZ,v2,1/2] " bluez.test.bot
2024-06-28 19:40 ` [PATCH BlueZ v2 1/2] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240628164701.626148-2-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox